Closed mariuszmaximus closed 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()
Is possible draw vertex and map texture UV to vertex ?
Like https://people.eecs.berkeley.edu/~ug/slide/pipeline/assignments/as9/texture.gif