Standard Function Names in OpenGL

shape
shape
shape
shape
shape
shape
shape
shape

___________________________________________________________________________
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);

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest news

Latest news directly from our blog.