Difference between revisions of "OpenGL"

From Free Pascal wiki
Jump to navigationJump to search
Line 3: Line 3:
  
 
The FreePascal OpenGL interface consists of the following units:
 
The FreePascal OpenGL interface consists of the following units:
* gl: This unit contains the main functionality such as drawing polygons, applying transformations, setting colors and materials,... Procedures always start with the preposition gl.
+
* gl: This unit contains the main functionality such as drawing polygons, applying transformations, setting colors and materials,... Procedures always start with the preposition "gl".
* glu: This unit contains OpenGL utils. Although it has some usefull functions, this unit is not necessary as you can implement all glu Procedures with the functionality of the gl unit. Procedures always start with the preposition glu.
+
* glu: This unit contains OpenGL utils. Although it has some usefull functions, this unit is not necessary as you can implement all glu Procedures with the functionality of the gl unit. Procedures always start with the preposition "glu".
 
* glext: Vendors can provide additional functionality through extensions. Use this unit to use these extensions.
 
* glext: Vendors can provide additional functionality through extensions. Use this unit to use these extensions.
* glut: This unit provides functionality for creating an OpenGL window. Although this is a cross-platform unit, most Windows operating systems doesn't have a glut dll by default.
+
* glut: This unit provides functionality for creating an OpenGL window. Although this is a cross-platform unit, most Windows operating systems don't have a glut dll by default.
* glx: glx provides functionality to set up an OpenGL window in an x window system. Procedures always start with the preposition glx. Obviously, you cannot use this unit on non-x window systems such as Windows.
+
* glx: glx provides functionality to set up an OpenGL window in an x window system. Procedures always start with the preposition "glx". Obviously, you cannot use this unit on non-x window systems such as Windows.

Revision as of 17:16, 27 September 2005

OpenGL (Open Graphics Library) is a cross-platform API for producing 3D computer graphics. Most modern video cards provide hardware accelerated OpenGL support, wich makes OpenGL a good solution for writing advanced graphics software.


The FreePascal OpenGL interface consists of the following units:

  • gl: This unit contains the main functionality such as drawing polygons, applying transformations, setting colors and materials,... Procedures always start with the preposition "gl".
  • glu: This unit contains OpenGL utils. Although it has some usefull functions, this unit is not necessary as you can implement all glu Procedures with the functionality of the gl unit. Procedures always start with the preposition "glu".
  • glext: Vendors can provide additional functionality through extensions. Use this unit to use these extensions.
  • glut: This unit provides functionality for creating an OpenGL window. Although this is a cross-platform unit, most Windows operating systems don't have a glut dll by default.
  • glx: glx provides functionality to set up an OpenGL window in an x window system. Procedures always start with the preposition "glx". Obviously, you cannot use this unit on non-x window systems such as Windows.