answersLogoWhite

0

How does Open GL works?

Updated: 9/18/2023
User Avatar

Wiki User

14y ago

Best Answer

OpenGL bases on the state variables. There are many values, for example the color, that remain after being specified. That means, you can specify a color once and draw several polygons, lines or what ever with this color then. There are no classes like in DirectX. However, it is logically structured. Before we come to the commands themselves, here is another thing:

To be hardware independent, OpenGL provides its own data types. They all begin with "GL". For example GLfloat, GLint and so on. There are also many symbolic constants, they all begin with "GL_", like GL_POINTS, GL_POLYGON. Finally the commands have the prefix "gl" like glVertex3f(). There is a utility library called GLU, here the prefixes are "GLU_" and "glu". GLUT commands begin with "glut", it is the same for every library. You want to know which libraries coexist with the ones called before? There are libraries for every system, Windows has the wgl*-Functions, Unix systems glx* and so on

.

A very important thing is to know, that there are two important matrices, which affect the transformation from the 3d-world to the 2d-screen: The projection matrix and the modelview matrix. The projection matrix contains information, how a vertex - let's say a "point" in space - shall be mapped to the screen. This contains, whether the projection shall be isometric or from a perspective, how wide the field of view is and so on. Into the other matrix you put information, how the objects are moved, where the viewer is and so on

.

Don't like matrices? Don't be afraid, you probably won't really see them, at least at the beginning. There are commands that do all the maths for you.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does Open GL works?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Some promising applications of open GL?

some of the promising applicatios of open gl


Why wont your computer support open GL for Counter Strike Source?

Why would you even want it to support Open GL


What are two examples of API's?

Open GL (Open Graphics Library) DirectX


What is the meaning of the term Open GL?

The term Open GL means Open Graphics Library. It is a program that makes up the rendering of 2 dimensional and 3 dimensional computer graphics. It is also used in the making of video games.


How do you open a passenger door in a 1999 ford contour gl when it is stuck?

Get the inner panel off and open it manually.


Which virtual graphics cards can i use to play minecraft and Starcraft?

gl 1.4, minimum. Open gl 2.0 and 128M all that minecraft says it requires


How do you fix a door on a Hyundai GL when the door won't open on the inside?

If the door on a Hyundai Gl will not open from the inside, the child safety lock mechanism should be checked. The lock mechanism is found inside the door jab underneath a label that says 'child lock'.


How do you remove the Harmonic Balancer on a 1994 Ford Tempo GL?

Works best with a air impact tool. There is room.


Free car competition sample code on opengl animation?

coding for car animation in open gl


What is the memory of Intel gma 3000 graphics card?

128 on xp and 256 on wi7 ...open gl 2.0


What are the weekend opening hours of GL Cars who are based in Surrey?

The weekend opening hours of the company GL Cars who are based in Surrey are 9:00 am whilst 3:00 pm on saturdays. Unfortunately they are not open on sundays.


Is open office compatible with MS Works?

Absolutely - I have both programs on my computer and Open Office will happily open MS Works files.