Gl (gb.opengl)
This class implements all the functions of the OpenGL library.
The OpenGL syntax was followed as much as possible, except for the following points:
-
A function that received a C array pointer and its integer count as arguments now receives a Gambas array.
-
Some constants had the same name as an OpenGL method. An underscore was added to their names in order to avoid the naming conflict. These constants are: Gl.ACCUM_, Gl.BITMAP_, Gl.CLEAR_ and Gl.VIEWPORT_.
This class is static.
Constants
Static methods
Accum
Operate on the accumulation buffer.
Begin
Delimit the vertices of a primitive or a group of like primitives.
BindTexture
Bind a named texture to a texturing target.
Clear
Clear buffers to preset values.
ClearAccum
Specify clear values for the accumulation buffer.
ClearColor
Specify clear values for the color buffers.
ClearDepth
Specify the clear value for the depth buffer.
ClearIndex
Specify the clear value for the color index buffers.
ClearStencil
Specify the clear value for the stencil buffer.
ClipPlane
Specify a plane against which all geometry is clipped.
ColorMask
For
Gl.ColorMaski, specifies the index of the
draw buffer whose color mask to set.
CullFace
Specify whether front- or back-facing facets can be culled.
DeleteLists
Delete a contiguous group of display lists.
DepthFunc
Specify the value used for depth buffer comparisons.
DepthMask
Enable or disable writing into the depth buffer.
DepthRange
Specify mapping of depth values from normalized device coordinates to window coordinates.
Disable
Enable or disable server-side GL capabilities.
DrawBuffer
Specify which color buffers are to be drawn into.
DrawPixels
Write a block of pixels to the frame buffer.
EdgeFlag
Flag edges as either boundary or nonboundary.
Enable
Enable or disable server-side GL capabilities.
End
Delimit the vertices of a primitive or a group of like primitives.
EndList
Create or replace a display list.
EvalCoord1f
Evaluate enabled one- and two-dimensional maps.
EvalCoord2f
Evaluate enabled one- and two-dimensional maps.
EvalCoord2fv
Evaluate enabled one- and two-dimensional maps.
EvalMesh1
Compute a one- or two-dimensional grid of points or lines.
EvalMesh2
Compute a one- or two-dimensional grid of points or lines.
EvalPoint1
Generate and evaluate a single point in a mesh.
EvalPoint2
Generate and evaluate a single point in a mesh.
Finish
Block until all GL execution is complete.
Flush
Force execution of GL commands in finite time.
Fogf
Specify fog parameters.
Fogfv
Specify fog parameters.
Fogi
Specify fog parameters.
Fogiv
Specify fog parameters.
FramebufferTexture1DEXT
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object.
FramebufferTexture2DEXT
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object.
FramebufferTexture3DEXT
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object.
FrontFace
Define front- and back-facing polygons.
Frustum
Multiply the current matrix by a perspective matrix.
GenLists
Generate a contiguous set of empty display lists.
GetBooleanv
Return the value or values of a selected parameter.
GetClipPlane
Return the coefficients of the specified clipping plane.
GetFloatv
Return the value or values of a selected parameter.
GetIntegerv
Return the value or values of a selected parameter.
GetString
Return a string describing the current GL connection.
Hint
Specify implementation-specific hints.
IndexMask
Specifies a bit mask to enable and disable the writing of individual bits
in the color index buffers.
Initially, the mask is all 1's.
Indexf
Set the current color index.
Indexi
Set the current color index.
IsEnabled
Specifies a symbolic constant indicating a GL capability.
IsList
Determine if a name corresponds to a display list.
IsTexture
Determine if a name corresponds to a texture.
Lightf
Set light source parameters.
Lightfv
Set light source parameters.
Lighti
Set light source parameters.
Lightiv
Set light source parameters.
LineWidth
Specify the width of rasterized lines.
LoadIdentity
Replace the current matrix with the identity matrix.
LoadMatrixf
Replace the current matrix with the specified matrix.
LoadName
Load a name onto the name stack.
LogicOp
Specify a logical pixel operation for rendering.
Map1f
Define a one-dimensional evaluator.
Map2f
Define a two-dimensional evaluator.
MapGrid1f
Define a one- or two-dimensional mesh.
MapGrid2f
Define a one- or two-dimensional mesh.
Materialf
Specify material parameters for the lighting model.
Materialfv
Specify material parameters for the lighting model.
Materiali
Specify material parameters for the lighting model.
Materialiv
Specify material parameters for the lighting model.
MatrixMode
Specify which matrix is the current matrix.
MultMatrixf
Multiply the current matrix with the specified matrix.
NewList
Create or replace a display list.
Ortho
Multiply the current matrix with an orthographic matrix.
PointSize
Specify the diameter of rasterized points.
PolygonMode
Specifies the polygons that
mode applies to.
Must be Gl.FRONT_AND_BACK for front- and back-facing polygons.
PolygonOffset
Set the scale and units used to calculate depth values.
PopName
Push and pop the name stack.
RasterPos2f
Specify the raster position for pixel operations.
RasterPos2i
Specify the raster position for pixel operations.
RasterPos3f
Specify the raster position for pixel operations.
RasterPos3i
Specify the raster position for pixel operations.
RasterPos4f
Specify the raster position for pixel operations.
RasterPos4i
Specify the raster position for pixel operations.
RasterPosf
Specify the raster position for pixel operations.
RasterPosfv
Specify the raster position for pixel operations.
RasterPosi
Specify the raster position for pixel operations.
RasterPosiv
Specify the raster position for pixel operations.
ReadBuffer
Specifies a color buffer.
Accepted values are
Gl.FRONT_LEFT,
Gl.FRONT_RIGHT,
Gl.FRONT,
Gl.LEFT, and
Gl.RIGHT.
Rectf
Specify one vertex of a rectangle.
Recti
Specify one vertex of a rectangle.
Rotatef
Multiply the current matrix by a rotation matrix.
Scalef
Multiply the current matrix by a general scaling matrix.
ShadeModel
Specifies a symbolic value representing a shading technique.
Accepted values are
Gl.FLAT and Gl.SMOOTH.
The initial value is Gl.SMOOTH.
StencilFunc
Set front and back function and reference value for stencil testing.
StencilMask
Specifies a bit mask to enable and disable writing of individual bits
in the stencil planes.
Initially, the mask is all 1's.
StencilOp
Set front and back stencil test actions.
TexCoordf
Set the current texture coordinates.
TexCoordi
Set the current texture coordinates.
TexEnvf
Set texture environment parameters.
TexEnvfv
Set texture environment parameters.
TexEnvi
Set texture environment parameters.
TexEnviv
Set texture environment parameters.
TexGeni
Specifies a texture coordinate.
Must be one of Gl.S, Gl.T, Gl.R, or Gl.Q.
TexImage1D
Specify a one-dimensional texture image.
TexImage2D
Specify a two-dimensional texture image.
Translatef
Multiply the current matrix by a translation matrix.