Category: OpenGL

shape
shape
shape
shape
shape
shape
shape
shape
Standard

OpenGL Base Function (Triangle)

Below is an example of a base program in OpenGL, resulting in a window with a red triangle in the center. [c] #include <stdlib.h> #include <GL/glut.h> //Call Back Function void draw (void) { //Set the background color of the Window glClear Color(1,1,1,0); //Clear Screen glClear (GL_COLOR_BUFFER_BIT); //Define the color of the drawing glColor3i(1,0,0); glBegin(GL_TRIANGLES); //Defines

Standard

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

Standard

Installing the GLUT.H library

According to [Scheiner,2004], OpenGL provides a set of very important commands for modeling and visualizing geometric objects. However, these commands are very primitive in the sense that they provide a low level of design that must be implemented using these commands. Furthermore, as OpenGL does not contain window management functions, it would also be necessary

Latest news

Latest news directly from our blog.