memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.06k stars 767 forks source link

Partial re-drawing in frame #409

Open CezarMocan opened 6 years ago

CezarMocan commented 6 years ago

Hi there,

Is it possible to only redraw a sub-rectangle of the entire frame? I am currently trying to do that by using nvgScissor, but the region outside my clipped area gets re-drawn as black pixels, instead of having the previous frame contents kept. What am I missing here?

Thank you!

(I know this is not an issue with nanovg, I did not know where else to ask.)

olliwang commented 6 years ago

Try FBO.