Master da Web
Back to Blog

Standard Function Names in OpenGL

LucasSeptember 2, 20111 min readUpdated on November 4, 2023
Standard Function Names in OpenGL

___________________________________________________________________________
Standard Function Names
For ease of use, the names of the functions in the OPENGL library follow a pattern. The standard adopted is simple: the first part of the name represents the representative library. The second part is the name of the command. The fourth part represents the type of function parameter and the third part the number of parameters.

Example:

___________________________________________________________________________
Accepted data types
___________________________________________________________________________
Argument Type
s Short
i Integer
f Float
d Double
uc Unsigned Char
us Unsigned Short
ui Unsigned Int
___________________________________________________________________________

Standard function names

Other examples :

gl Load Identity();
gl Vertex3f(1.0,2.3,0.5);
gl Vertex2i(1,2);
gl Vertex2f(2.3,0.5);
glut Solid Cube(30);

Tags#Functions#OpenGL data#OpenGL functions
Share

Need Hosting or Servers?

Discover our VPS, dedicated servers and professional hosting solutions

Related Articles

View all articles