View Single Post
Old 05-27-2020, 06:58 AM   #2
Human being with feelings
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,518

I'm no expert and I haven't done any of this with video but I'd imagine it's the same as with jsfx, so IIRC gfx_blit will copy a section of the input buffer to the currently selected buffer. Arguments x,y,w,h define a rectangular section of the destination buffer where the image will be put and srcx, srcy, srcw, srch define the rectangular area of the input buffer to be copied.

To avoid flickering, the best technique is to draw everything into an offscreen buffer first then blit the whole thing to the display when you're done.

Hope that helps a bit.
IXix is offline   Reply With Quote