Closed ddetone closed 10 years ago
The plan:
First put a generic texture on the square, then use libpangocairo to generate a text raster to serve as input the texture.
From what I gathered on forums and from my intuition, adding text to a texture would work, but the final graphic would be very sensitive to scaling and other transformations.
I spent some time writing my own function to use the library freetype, when I stumbled across the libcvd documentation which has a drawText function!
Added a text here: 80d84b67c6ecf8b88d5c204657421b1cc762ef7b And an optimization for it here: 06568c83b5681fa8736ac7ca4590eaa6598b1699
Need to generate a glTexture to assign to the opengl square