Talk:Programming OpenGL in Linux: Programming Animations with GLX and Xlib

From OpenGL Wiki
Revision as of 00:45, 28 December 2019 by VictorG (talk | contribs) (Created page with "Reguarding the section entitled: FIND A FONT<br> Everytime I use this eggcellent example, the font stuff is broken.<br> Rather than having code in a for loop just to hope for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Reguarding the section entitled: FIND A FONT
Everytime I use this eggcellent example, the font stuff is broken.
Rather than having code in a for loop just to hope for fonts, which, in my case are not there, I have to substitute in the SIMPLEST of code below:

font_struct = XLoadQueryFont(dpy, "10x20"); if(font_struct != NULL) { glXUseXFont(font_struct->fid, 32, 192, 32); }

Wiki made it a oneliner, whatever, if it works it should still work.