Layer based drawing
prashant-saxena opened this issue · 3 comments
prashant-saxena commented
Hi,
The current implementation draws everything sequentially on top of last drawing shape. Is it possible to create a layer based approach?
It's like you will store all the drawing call to a layer and draw it later. For example:
- Draw Rectangle
- Store Circle
- Draw Rectangle
- Draw stored circle
Cheers
mulle-nat commented
Have a look at the example_fbo.c in the nanovg project. It does something like that,
xiangwencheng1994 commented
Vertex based cache, we wanted.
mulle-nat commented
AFAIK there is no way to do this in nanovg as is.