OpenGL

From Lazarus wiki
Revision as of 12:44, 26 September 2005 by Bart (talk | contribs)
Jump to navigationJump to search

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 doesn'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.