By: Farwa Abdul Hannan (12 – CS – 13)
Prefix and Suffix of OpenGL
OpenGL is a software interface to graphics hardware. This interface consists of about 150
distinct commands that are used to specify the objects and operations needed to produce interactive
three dimensional applications. It also consists of different routines.
A prefix is laced at the beginning of the word to modify or change its meaning. It also helps
to avoid naming conflicts if two independent groups implement a similar extension. The GLU and
GLX routines begin with the prefix GLU and GLX respectively.
The Ending part of the word that modifies the meaning of the word, in OpenGL suffix
represents some datatypes along with their size.
Suffix Data Type C language type OpenGL Type
b 8-bit integer signed char GLbyte
s 16-bit integer Short GLshort
i 32-bit integer int or long GLint, GLsizei
f 32-bit float Float GLfloat, GLclampf
d 64-bit float Double GLdouble,GLclampd
ub 8-bit unsigned number unsigned char GLubyte,GLboolean
us 16-bit unsigned number unsigned short GLushort
ui 32-bit unsigned number unsigned int or