41 width = (size * len) / 2;
100 glRasterPos2f(lab_pos[
X], lab_pos[
Y]);
101 glListBase(fontbase);
102 glCallLists(strlen(txt), GL_UNSIGNED_BYTE, (
const GLvoid *)txt);
int get_txtdescender(void)
Get text descender.
void do_label_display(GLuint fontbase, float *lab_pos, const char *txt)
Display label.
int gsd_get_txtheight(int size)
Get text height.
int get_txtxoffset(void)
Get text offset.
int gsd_get_txtwidth(const char *s, int size)
Get text width.