nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Add fill paint support to nvgText.

Open starwing opened this issue 11 years ago • 1 comments

Hi Mikko :)

Currently nvgText can only draw colored text, but can not draw image pattern, or gradient. So I want to propose that add support to use whole paint when draw text.

the plan is that: add a int textureImage parameter to renderTriangles, and add a extra texture unit in Uniform buffer, first get color from font texture, then calculate the paint color, and do fix two color to produce the final color.

I have not good at texture unit on Unifom buffer, So can you made that? Or give me some advise and I will try to make a pull request.

regards

starwing avatar Jul 12 '14 02:07 starwing

Would be very neat indeed xP

EriKWDev avatar May 17 '21 11:05 EriKWDev