styluslabs / nanovgXC

Lightweight vector graphics library implementing exact-coverage antialiasing in OpenGL
Other
139 stars 6 forks source link

vertex texture maping #6

Closed mariuszmaximus closed 2 weeks ago

mariuszmaximus commented 1 year ago

Is possible draw vertex and map texture UV to vertex ?

Like https://people.eecs.berkeley.edu/~ug/slide/pipeline/assignments/as9/texture.gif

pbsurf commented 2 weeks ago

To draw an image, load the image with one of the nvgCreateImage() functions, create a paint object for the image using nvgImagePattern(), set the paint object as the current fill with nvgFillPaint(), then draw a path to be filled with image, e.g., using nvgRect()