1/22/2024 0 Comments Opengl 2.0 es write shader![]() ![]() Another approach (if your text is relatively fixed) is to store entire words, phrases or even sentences as texture and draw the whole thing with one textured quad.Ī very long time ago, I wrote a FAQ about this (that was back in the era of OpenGL 1.2!) () ![]() If you have a lot of text - that might mean drawing a LOT of polygons. One simple way to do that is to make up a short/wide texture map with all of the ASCII characters in it - then write code to draw each letter as a textured quadrilateral using the appropriate texture coordinates to extract the right letter out of the texture map. You either do that outside of the API (maybe using some other operating-system commands) - or you write your own font rendering stuff. There is no API in OpenGL (or OpenGLES) for drawing text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |