Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer based drawing #647

Open
prashant-saxena opened this issue Sep 10, 2022 · 3 comments
Open

Layer based drawing #647

prashant-saxena opened this issue Sep 10, 2022 · 3 comments

Comments

@prashant-saxena
Copy link

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:

  1. Draw Rectangle
  2. Store Circle
  3. Draw Rectangle
  4. Draw stored circle

Cheers

@mulle-nat
Copy link
Contributor

Have a look at the example_fbo.c in the nanovg project. It does something like that,

@xiangwencheng1994
Copy link

Vertex based cache, we wanted.

@mulle-nat
Copy link
Contributor

AFAIK there is no way to do this in nanovg as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants