gg icon indicating copy to clipboard operation
gg copied to clipboard

Drawing directly in the screen

Open hasanAjsf opened this issue 5 years ago • 3 comments

Hi, is there a way to draw directly on the screen/monitor instead of saving the drawing at file?

hasanAjsf avatar Oct 30 '20 18:10 hasanAjsf

wondering this too, in the normal graphics library you set the header content type to the image and make a buffer and output the image through that buffer in the encode

can't see a way to do it with this library

G2G2G2G avatar Jan 04 '21 06:01 G2G2G2G

I've done it and it works, in my case using the raylib2 library.

You generate an off-screen image using gg, then upload it as a texture. It works very well for repetitive kinds of animation, if you upload an animated sequence of images as GPU textures and then display those in the intended sequence, similar to the effect of a looping GIF.

On Mon, 4 Jan 2021 at 03:12, G2G2G2G [email protected] wrote:

wondering this too, in the normal graphics library you set the header content type to the image and make a buffer and output the image through that buffer in the encode

can't see a way to do it with this library

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fogleman/gg/issues/115#issuecomment-753778753, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFXITLOP6AGE34CZUNR4TSYFL3NANCNFSM4TFIYUKA .

haiitch avatar Jan 26 '21 18:01 haiitch

@haiitch can you show an example code pls.

hasanAjsf avatar May 21 '21 05:05 hasanAjsf