→ home
 
→ index of project tkopengl

Module tkopengl

Synopsis: 

Functions

Classes


Description:
 
Function glActiveTexture
Select active texture unit
Signature
glActiveTexture(inttexture)
Arguments
inttexture–Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTUREi, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0.
Description

 
glActiveTexture selects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementation dependent, but must be at least 2.
 
Vertex arrays are client-side GL resources, which are selected by the glClientActiveTexture() routine.
See also:  


 
→ top of page
Function glAlphaFunc
Specify the alpha test function
Signature
glAlphaFunc(intfunc,
  floatref 
  )  
Arguments
intfunc–Specifies the alpha comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_ALWAYS.
floatref–Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range 0 through 1, where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0.
See also:  


 
→ top of page
Function glArrayElement
Render a vertex using the specified vertex array element
Signature
glArrayElement(inti)
Arguments
inti–Specifies an index into the enabled vertex data arrays.
See also:  


 
→ top of page
Function glAttachShader
Attaches a shader object to a program object
Signature
glAttachShader(intprogram,
  intshader 
  )  
Arguments
intprogram–Specifies the program object to which a shader object will be attached
intshader–Specifies the shader object that is to be attached
See also:  


 
→ top of page
Function glBegin
Delimit the vertices of a primitive or a group of like primitives
Signature
glBegin(intmode)
Arguments
intmode–Specifies the primitive or primitives that will be created from vertices presented between glBegin and the subsequent glEnd. Ten symbolic constants are accepted: GL_POINTS, GL_LINES, GL_LINE_STRIP, GL_LINE_LOOP, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_QUADS, GL_QUAD_STRIP, and GL_POLYGON.
See also:  


 
→ top of page
Function glBindAttribLocation
Associates a generic vertex attribute index with a named attribute variable
Signature
glBindAttribLocation(intprogram,
  intindex,
  Stringname 
  )  
Arguments
intprogram–Specifies the handle of the program object in which the association is to be made
intindex–Specifies the index of the generic vertex attribute to be bound
Stringname–Specifies the name of the vertex shader attribute variable to which index is to be bound
See also:  


 
→ top of page
Function glBindBuffer
Bind a named buffer to a target
Signature
glBindBuffer(inttarget,
  intid 
  )  
Arguments
inttarget–Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER or GL_PIXEL_UNPACK_BUFFER.
intid–Specifies the name id of a buffer object.
Description

While a non-zero buffer object is bound to the GL_ARRAY_BUFFER target, the vertex array pointer parameter that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object measured in basic machine units.
While a non-zero buffer object is bound to the GL_ELEMENT_ARRAY_BUFFER target, the indices parameter of glDrawElements() that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object measured in basic machine units.
See also:  


 
→ top of page
Function glBindFragDataLocation
Bind a user-defined varying out variable to a fragment shader color number
Signature
glBindFragDataLocation(intprogram,
  intcolorNumber,
  Stringname 
  )  
Arguments
intprogram–The name of the program containing varying out variable whose binding to modify
intcolorNumber–The color number to bind the user-defined varying out variable to
Stringname–The name of the user-defined varying out variable whose binding to modify
See also:  


 
→ top of page
Function glBindFragDataLocationIndexed
Bind a user-defined varying out variable to a fragment shader color number and index
Signature
glBindFragDataLocationIndexed(intprogram,
  intcolorNumber,
  intindex,
  Stringname 
  )  
Arguments
intprogram–The name of the program containing varying out variable whose binding to modify
intcolorNumber–The color number to bind the user-defined varying out variable to
intindex–The index of the color input to bind the user-defined varying out variable to
Stringname–The name of the user-defined varying out variable whose binding to modify
See also:  


 
→ top of page
Function glBindFramebuffer
Bind a framebuffer to a framebuffer target
Signature
glBindFramebuffer(inttarget,
  intframebuffer 
  )  
Arguments
inttarget–Specifies the framebuffer target of the binding operation
intframebuffer–Specifies the name of the framebuffer object to bind
See also:  


 
→ top of page
Function glBindRenderbuffer
Bind a renderbuffer to a renderbuffer target
Signature
glBindRenderbuffer(inttarget,
  intrenderbuffer 
  )  
Arguments
inttarget–Specifies the renderbuffer target of the binding operation. target must be GL_RENDERBUFFER
intrenderbuffer–Specifies the name of the renderbuffer object to bind
See also:  


 
→ top of page
Function glBindSampler
Bind a named sampler to a texturing target
Signature
glBindSampler(intunit,
  intsampler 
  )  
Arguments
intunit–Specifies the index of the texture unit to which the sampler is bound.
intsampler–Specifies the name of a sampler.
See also:  


 
→ top of page
Function glBindTexture
Bind a named texture to a texturing target
Signature
glBindTexture(inttarget,
  inttexture 
  )  
Arguments
inttarget–Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D or GL_TEXTURE_2D.
inttexture–Specifies the name of a texture.
See also:  


 
→ top of page
Function glBlendColor
Set the blend color
Signature
glBlendColor(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red value
floatg–Green value
floatb–Blue value
floata–Alpha value
See also:  


 
→ top of page
Function glBlendEquation
Specify the equation used for both the RGB blend equation and the Alpha blend equation
Signature
glBlendEquation(intmode)
Arguments
intmode–
See also:  


 
→ top of page
Function glBlendFunc
Specify pixel arithmetic
Signature
glBlendFunc(intsfactor,
  intdfactor 
  )  
Arguments
intsfactor–Specifies how the red, green, blue, and alpha source blending factors are computed. Nine symbolic constants are accepted: GL_ZERO, GL_ONE, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE.
intdfactor–Specifies how the red, green, blue, and alpha destination blending factors are computed. Eight symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, and GL_ONE_MINUS_DST_ALPHA. The initial value is GL_ZERO.
See also:  


 
→ top of page
Function glBlendFuncSeparate
Specify pixel arithmetic for RGB and alpha components separately
Signature
glBlendFuncSeparate(intsrcRGB,
  intdstRGB,
  intsrcAlpha,
  intdstAlpha 
  )  
Arguments
intsrcRGB–Specifies how the red, green, and blue blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE.
intdstRGB–Specifies how the red, green, and blue destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO.
intsrcAlpha–Specifies how the alpha source blending factor is computed. The same symbolic constants are accepted as for srcRGB. The initial value is GL_ONE.
intdstAlpha–Specifies how the alpha destination blending factor is computed. The same symbolic constants are accepted as for dstRGB. The initial value is GL_ZERO.
See also:  


 
→ top of page
Function glCallList
Execute a display list
Signature
glCallList(intlist)
Arguments
intlist–Specifies the integer name of the display list to be executed.
See also:  


 
→ top of page
Function glCheckFramebufferStatus
Check the completeness status of a framebuffer
Signature
glCheckFramebufferStatus(inttarget)
 :int
Arguments
inttarget–Specify the target of the framebuffer completeness check
Returns
int–The return value is GL_FRAMEBUFFER_COMPLETE if the framebuffer bound to target is complete. Other return values are.. →GL_FRAMEBUFFER_UNDEFINED, GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT, GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER, GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER, GL_FRAMEBUFFER_UNSUPPORTED, →GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE, →GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE, →GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS
See also:  


 
→ top of page
Function glClear
Clear buffers to preset values
Signature
glClear(intmask)
Arguments
intmask–Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT.
See also:  


 
→ top of page
Function glClearColor
Specify clear values for the color buffers
Signature
glClearColor(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function glClearDepth
Specify the clear value for the depth buffer
Signature
glClearDepth(floatdepth)
Arguments
floatdepth–Specifies the depth value used when the depth buffer is cleared. The initial value is 1.
See also:  


 
→ top of page
Function glClearStencil
Specify the clear value for the stencil buffer
Signature
glClearStencil(ints)
Arguments
ints–Specifies the index used when the stencil buffer is cleared. The initial value is 0.
See also:  


 
→ top of page
Function glClientActiveTexture
select active texture unit
Signature
glClientActiveTexture(inttexture)
Arguments
inttexture–Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTUREi, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0.
Description

 
glActiveTexture selects which texture unit subsequent texture state calls will affect. The number of texture units an implementation supports is implementation dependent, but must be at least 2.
 
glClientActiveTexture selects the vertex array client state parameters to be modified by glTexCoordPointer (see zglTexCoordPointer1f(), zglTexCoordPointer2f(), →zglTexCoordPointer3f), and enabled or disabled with glEnableClientState() or glDisableClientState, respectively, when called with a parameter of GL_TEXTURE_COORD_ARRAY.
See also:  


 
→ top of page
Function glColor3f
Set the current color
Signature
glColor3f(floatr,
  floatg,
  floatb 
  )  
Arguments
floatr–Red component
floatg–Green component
floatb–Blue component
See also:  


 
→ top of page
Function glColor3ub
Set the current color
Signature
glColor3ub(byter,
  byteg,
  byteb 
  )  
Arguments
byter–Red component
byteg–Green component
byteb–Blue component
See also:  


 
→ top of page
Function glColor4f
Set the current color
Signature
glColor4f(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function glColor4ub
Set the current color
Signature
glColor4ub(byter,
  byteg,
  byteb,
  bytea 
  )  
Arguments
byter–Red component
byteg–Green component
byteb–Blue component
bytea–Alpha component
See also:  


 
→ top of page
Function glColorMask
Enable and disable writing of frame buffer color components
Signature
glColorMask(booleanr,
  booleang,
  booleanb,
  booleana 
  )  
Arguments
booleanr–Red mask
booleang–Green mask
booleanb–Blue mask
booleana–Alpha mask
See also:  


 
→ top of page
Function glColorMaterial
Specify which material parameters track the current color
Signature
glColorMaterial(intface,
  intmode 
  )  
Arguments
intface–GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK
intmode–GL_EMISSION, GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_AMBIENT_AND_DIFFUSE*
See also:  


 
→ top of page
Function glCompileShader
Compiles a shader object
Signature
glCompileShader(intshader)
Arguments
intshader–Specifies the shader object to be compiled.
See also:  


 
→ top of page
Function glCopyPixels
Copy pixels in the frame buffer
Signature
glCopyPixels(intx,
  inty,
  intw,
  inth,
  inttype 
  )  
Arguments
intx–Specify the window x coordinate of the lower left corner of the rectangular region of pixels to be copied
inty–Specify the window y coordinate of the lower left corner of the rectangular region of pixels to be copied
intw–Specify the width of the rectangular region of pixels to be copied. Must be nonnegative.
inth–Specify the height of the rectangular region of pixels to be copied. Must be nonnegative.
inttype–Specifies whether color values, depth values, or stencil values are to be copied. Symbolic constants GL_COLOR, GL_DEPTH, and GL_STENCIL are accepted.
See also:  


 
→ top of page
Function glCopyTexImage2D
Copy pixels into a 2D texture image
Signature
glCopyTexImage2D(inttarget,
  intlevel,
  intinternalFormat,
  intx,
  inty,
  intwidth,
  intheight,
  intborder 
  )  
Arguments
inttarget–Specifies the target texture. Must be GL_TEXTURE_2D.
intlevel–Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
intinternalFormat–Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, or GL_RGBA16.
intx–Specify the window x coordinate of the lower left corner of the rectangular region of pixels to be copied.
inty–Specify the window y coordinate of the lower left corner of the rectangular region of pixels to be copied.
intwidth–Specifies the width of the texture image. Must be 0 or 2**n + 2*border for some integer n.
intheight–Specifies the height of the texture image. Must be 0 or 2**m + 2*border for some integer m.
intborder–Specifies the width of the border. Must be either 0 or 1.
See also:  


 
→ top of page
Function glCopyTexSubImage2D
Copy a two-dimensional texture subimage
Signature
glCopyTexSubImage2D(inttarget,
  intlevel,
  intxoffset,
  intyoffset,
  intx,
  inty,
  intwidth,
  intheight 
  )  
Arguments
inttarget–Specifies the target texture. Must be GL_TEXTURE_2D
intlevel–Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
intxoffset–Specifies a texel offset in the x direction within the texture array.
intyoffset–Specifies a texel offset in the y direction within the texture array.
intx–Specify the window x coordinate of the lower left corner of the rectangular region of pixels to be copied.
inty–Specify the window y coordinate of the lower left corner of the rectangular region of pixels to be copied.
intwidth–Specifies the width of the texture subimage.
intheight–Specifies the height of the texture subimage.
See also:  


 
→ top of page
Function glCopyTexSubImage3D
Copy a three-dimensional texture subimage
Signature
glCopyTexSubImage3D(inttarget,
  intlevel,
  intxoffset,
  intyoffset,
  intzoffset,
  intx,
  inty,
  intwidth,
  intheight 
  )  
Arguments
inttarget–Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D.
intlevel–Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
intxoffset–Specifies a texel offset in the x direction within the texture array.
intyoffset–Specifies a texel offset in the y direction within the texture array.
intzoffset–Specifies a texel offset in the z direction within the texture array.
intx–Specify the horizontal window coordinate of the lower left corner of the rectangular region of pixels to be copied.
inty–Specify the vertical window coordinate of the lower left corner of the rectangular region of pixels to be copied.
intwidth–Specifies the width of the texture subimage.
intheight–Specifies the height of the texture subimage.
See also:  


 
→ top of page
Function glCreateProgram
Creates a program object
Signature
glCreateProgram():int
Returns
int–creates an empty program object and returns a non-zero value by which it can be referenced. returns 0 if an error occurs creating the program object.
See also:  


 
→ top of page
Function glCreateShader
Creates a shader object
Signature
glCreateShader(intshaderType)
 :int
Arguments
intshaderType–Specifies the type of shader to be created. Must be either GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
Returns
int–creates an empty shader object and returns a non-zero value by which it can be referenced. returns 0 if an error occurs creating the shader object
See also:  


 
→ top of page
Function glCullFace
Specify whether front- or back-facing facets can be culled
Signature
glCullFace(intmode)
Arguments
intmode–Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK.
See also:  


 
→ top of page
Function glDeleteProgram
Deletes a program object
Signature
glDeleteProgram(intprogram)
Arguments
intprogram–Specifies the program object to be deleted
See also:  


 
→ top of page
Function glDeleteShader
Deletes a shader object
Signature
glDeleteShader(intshader)
Arguments
intshader–
See also:  


 
→ top of page
Function glDepthFunc
Specify the value used for depth buffer comparisons
Signature
glDepthFunc(intfunc)
Arguments
intfunc–Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS.
See also:  


 
→ top of page
Function glDepthMask
Enable or disable writing into the depth buffer
Signature
glDepthMask(booleanmask)
Arguments
booleanmask–Specifies whether the depth buffer is enabled for writing. If flag is false, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.
See also:  


 
→ top of page
Function glDetachShader
Detaches a shader object from a program object to which it is attached
Signature
glDetachShader(intprogram,
  intshader 
  )  
Arguments
intprogram–Specifies the program object from which to detach the shader object
intshader–Specifies the shader object to be detached
See also:  


 
→ top of page
Function glDisable
Disable server-side GL capabilities
Signature
glDisable(intcap)
Arguments
intcap–Specifies a symbolic constant indicating a GL capability.
See also:  


 
→ top of page
Function glDisableClientState
Disable client-side capability
Signature
glDisableClientState(intcap)
Arguments
intcap–
See also:  


 
→ top of page
Function glDisableVertexAttribArray
Disable a generic vertex attribute array
Signature
glDisableVertexAttribArray(intindex)
Arguments
intindex–Specifies the index of the generic vertex attribute to be disabled
See also:  


 
→ top of page
Function glDrawArrays
Render primitives from array data
Signature
glDrawArrays(intmode,
  intfirst,
  intcount 
  )  
Arguments
intmode–Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted.
intfirst–Specifies the starting index in the enabled arrays.
intcount–Specifies the number of indices to be rendered.
See also:  


 
→ top of page
Function glDrawBuffer
Specify which color buffers are to be drawn into
Signature
glDrawBuffer(intmode)
Arguments
intmode–Specifies up to four color buffers to be drawn into. Symbolic constants GL_NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_AND_BACK, and GL_AUXi, where i is between 0 and GL_AUX_BUFFERS-1, are accepted (GL_AUX_BUFFERS is not the upper limit; use glGet to query the number of available aux buffers.) The initial value is GL_FRONT for single-buffered contexts, and GL_BACK for double-buffered contexts.
See also:  


 
→ top of page
Function glDrawBuffers
Specifies a list of color buffers to be drawn into
Signature
glDrawBuffers(intn,
  IntArraya 
  )  
Arguments
intn–Specifies the number of buffers in bufs.
IntArraya–Array of symbolic constants specifying the buffers into which fragment colors or data values will be written. The symbolic constants contained in bufs may be any of the following GL_NONE, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi
See also:  


 
→ top of page
Function glDrawElements
Render primitives from array data
Signature
glDrawElements(intmode,
  IntArrayindices 
  )  
Arguments
intmode–Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted.
IntArrayindices–Specifies a pointer (and count) to the location where the indices are stored
See also:  


 
→ top of page
Function glEdgeFlag
Flag edges as either boundary or nonboundary
Signature
glEdgeFlag(booleanflag)
Arguments
booleanflag–Specifies the current edge flag value, either true or false. The initial value is true.
See also:  


 
→ top of page
Function glEnable
Enable server-side GL capabilities
Signature
glEnable(intcap)
Arguments
intcap–Specifies a symbolic constant indicating a GL capability.
See also:  


 
→ top of page
Function glEnableClientState
Enable client-side capability
Signature
glEnableClientState(intcap)
Arguments
intcap–Specifies the capability to enable. Symbolic constants GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted.
See also:  


 
→ top of page
Function glEnableVertexAttribArray
Enable a generic vertex attribute array
Signature
glEnableVertexAttribArray(intindex)
Arguments
intindex–Specifies the index of the generic vertex attribute to be enabled
See also:  


 
→ top of page
Function glEnd
Delimit the vertices of a primitive or a group of like primitives
Signature
glEnd()
See also:  


 
→ top of page
Function glFinish
Block until all GL execution is complete
Signature
glFinish()
See also:  


 
→ top of page
Function glFlush
Force execution of GL commands in finite time
Signature
glFlush()
See also:  


 
→ top of page
Function glFramebufferRenderbuffer
Attach a renderbuffer as a logical buffer to the currently bound framebuffer object
Signature
glFramebufferRenderbuffer(inttarget,
  intattachment,
  intrenderbuffertarget,
  intrenderbuffer 
  )  
Arguments
inttarget–Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER
intattachment–Specifies the attachment point of the framebuffer
intrenderbuffertarget–Specifies the renderbuffer target and must be GL_RENDERBUFFER
intrenderbuffer–Specifies the name of an existing renderbuffer object of type renderbuffertarget to attach
See also:  


 
→ top of page
Function glFramebufferTexture1D
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object
Signature
glFramebufferTexture1D(inttarget,
  intattachment,
  inttextarget,
  inttexture,
  intlevel 
  )  
Arguments
inttarget–Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER
intattachment–Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT
inttextarget–For glFramebufferTexture1D(), glFramebufferTexture2D() and glFramebufferTexture3D(), specifies what type of texture is expected in the texture parameter, or for cube map textures, which face is to be attached
inttexture–Specifies the texture object to attach to the framebuffer attachment point named by attachment
intlevel–Specifies the mipmap level of texture to attach
See also:  


 
→ top of page
Function glFramebufferTexture2D
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object
Signature
glFramebufferTexture2D(inttarget,
  intattachment,
  inttextarget,
  inttexture,
  intlevel 
  )  
Arguments
inttarget–Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER
intattachment–Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT
inttextarget–For glFramebufferTexture1D(), glFramebufferTexture2D() and glFramebufferTexture3D(), specifies what type of texture is expected in the texture parameter, or for cube map textures, which face is to be attached
inttexture–Specifies the texture object to attach to the framebuffer attachment point named by attachment
intlevel–Specifies the mipmap level of texture to attach
See also:  


 
→ top of page
Function glFramebufferTexture3D
Attach a level of a texture object as a logical buffer to the currently bound framebuffer object
Signature
glFramebufferTexture3D(inttarget,
  intattachment,
  inttextarget,
  inttexture,
  intlevel,
  intzoffset 
  )  
Arguments
inttarget–Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER
intattachment–Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT
inttextarget–For glFramebufferTexture1D(), glFramebufferTexture2D() and glFramebufferTexture3D(), specifies what type of texture is expected in the texture parameter, or for cube map textures, which face is to be attached
inttexture–Specifies the texture object to attach to the framebuffer attachment point named by attachment
intlevel–Specifies the mipmap level of texture to attach
intzoffset–
See also:  


 
→ top of page
Function glFrontFace
Define front- and back-facing polygons
Signature
glFrontFace(intmode)
Arguments
intmode–Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW.
See also:  


 
→ top of page
Function glFrustum
Multiply the current matrix by a perspective matrix
Signature
glFrustum(floatleft,
  floatright,
  floatbottom,
  floattop,
  floatznear,
  floatzfar 
  )  
Arguments
floatleft–Specify the coordinate for the left vertical clipping plane.
floatright–Specify the coordinate for the right vertical clipping plane.
floatbottom–Specify the coordinate for the bottom horizontal clipping plane.
floattop–Specify the coordinate for the top horizontal clipping plane.
floatznear–Specify the distances to the near depth clipping plane. The distance must be positive.
floatzfar–Specify the distances to the far depth clipping plane. The distance must be positive.
See also:  


 
→ top of page
Function glGenerateMipmap
Generate a complete set of mipmaps for a texture object
Signature
glGenerateMipmap(inttarget)
Arguments
inttarget–Specifies the texture target of the texture object whose mipmaps will be generated. Must be one of the following symbolic constants: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP.
See also:  


 
→ top of page
Function glGetAttribLocation
Returns the location of an attribute variable
Signature
glGetAttribLocation(intprogram,
  Stringname 
  )  
Arguments
intprogram–Specifies the handle of the program object to be queried
Stringname–Specifies the name of the attribute variable whose location is to be queried
See also:  


 
→ top of page
Function glGetError
Return last GL error code and reset internal error state to GL_NO_ERROR.
Signature
glGetError():int
Returns
int–OpenGL error code
See also:  


 
→ top of page
Function glGetFloatv
Use this for queries that return a float vector.
Signature
glGetFloatv(intname,
  FloatArrayret 
  )  
Arguments
intname–
FloatArrayret–
See also:  


 
→ top of page
Function glGetFragDataIndex
Query the bindings of color indices to user-defined varying out variables
Signature
glGetFragDataIndex(intprogram,
  Stringname 
  )  
 :int
Arguments
intprogram–The name of the program containing varying out variable whose binding to modify
Stringname–The name of the user-defined varying out variable whose index to query
Returns
int–The index of the fragment color to which the variable name was bound when the program object program was last linked. If name is not a varying out variable of program, or if an error occurs, -1 will be returned
See also:  


 
→ top of page
Function glGetFragDataLocation
Query the bindings of color numbers to user-defined varying out variables
Signature
glGetFragDataLocation(intprogram,
  Stringname 
  )  
 :int
Arguments
intprogram–The name of the program containing varying out variable whose binding to modify
Stringname–The name of the user-defined varying out variable whose binding to modify
Returns
int–The assigned color number binding for the user-defined varying out variable name for program program. program must have previously been linked
See also:  


 
→ top of page
Function glGetIntegerv
Use this for queries that return an integer vector.
Signature
glGetIntegerv(intname,
  IntArrayret 
  )  
Arguments
intname–
IntArrayret–
See also:  


 
→ top of page
Function glGetProgramInfoLog
Returns the information log for a program object
Signature
glGetProgramInfoLog(intprogram,
  StringretLog 
  )  
Arguments
intprogram–Specifies the program object whose information log is to be queried.
StringretLog–Receives the info log. The string is resized/reallocated, if necessary.
See also:  


 
→ top of page
Function glGetShaderInfoLog
Returns the information log for a shader object
Signature
glGetShaderInfoLog(intshader,
  StringretLog 
  )  
Arguments
intshader–
StringretLog–Receives the info log. The string is resized/reallocated, if necessary.
See also:  


 
→ top of page
Function glGetString
Return a string describing the current GL connection
Signature
glGetString(intname)
 :String
Arguments
intname–Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, or GL_EXTENSIONS.
Returns
String–String
See also:  


 
→ top of page
Function glGetUniformLocation
Returns the location of a uniform variable
Signature
glGetUniformLocation(intprogram,
  Stringname 
  )  
 :int
Arguments
intprogram–Specifies the program object to be queried. The program must currently be bound, please see glUseProgram().
Stringname–The name of the uniform variable whose location is to be queried
Returns
int–location of the uniform variable
See also:  


 
→ top of page
Function glHint
Specify implementation-specific hints
Signature
glHint(inttarget,
  intmode 
  )  
Arguments
inttarget–Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, and GL_POLYGON_SMOOTH_HINT are accepted.
intmode–Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted.
See also:  


 
→ top of page
Function glIsBuffer
Query whether the given name id is bound to a buffer object
Signature
glIsBuffer(intid)
 :boolean
Arguments
intid–Specifies the name id of a buffer object.
Returns
boolean–1(true) if the name id represents a buffer object, 0(false) otherwise.
See also:  


 
→ top of page
Function glIsEnabled
Test whether a capability is enabled
Signature
glIsEnabled(intcap)
 :int
Arguments
intcap–Specifies a symbolic constant indicating a GL capability.
Returns
int–
See also:  


 
→ top of page
Function glIsFramebuffer
Determine if a name corresponds to a framebuffer object
Signature
glIsFramebuffer(intframebuffer)
 :boolean
Arguments
intframebuffer–Specifies a value that may be the name of a framebuffer object
Returns
boolean–
See also:  


 
→ top of page
Function glIsRenderbuffer
Determine if a name corresponds to a renderbuffer object
Signature
glIsRenderbuffer(intrenderbuffer)
 :boolean
Arguments
intrenderbuffer–Specifies a value that may be the name of a renderbuffer object
Returns
boolean–
See also:  


 
→ top of page
Function glLightModeli
Configure light model
Signature
glLightModeli(intpname,
  intparam 
  )  
Arguments
intpname–Specifies a single-valued lighting model parameter. →GL_LIGHT_MODEL_LOCAL_VIEWER, →GL_LIGHT_MODEL_COLOR_CONTROL, and →GL_LIGHT_MODEL_TWO_SIDE are accepted.
intparam–1(true) or (false) resp. GL_SINGLE_COLOR or GL_SEPARATE_SPECULAR_COLOR if pname is →GL_LIGHT_MODEL_COLOR_CONTROL.
See also:  


 
→ top of page
Function glLineStipple
Specify the line stipple pattern
Signature
glLineStipple(intfactor,
  shortpattern 
  )  
Arguments
intfactor–Specifies a multiplier for each bit in the line stipple pattern. If factor is 3, for example, each bit in the pattern is used three times before the next bit in the pattern is used. factor is clamped to the range [1, 256] and defaults to 1.
shortpattern–Specifies a 16-bit integer whose bit pattern determines which fragments of a line will be drawn when the line is rasterized. Bit zero is used first; the default pattern is all 1's.
See also:  


 
→ top of page
Function glLineWidth
Specify the width of rasterized lines
Signature
glLineWidth(floatwidth)
Arguments
floatwidth–Specifies the width of rasterized lines. The initial value is 1.
See also:  


 
→ top of page
Function glLinkProgram
Links a program object
Signature
glLinkProgram(intprogram)
Arguments
intprogram–Specifies the handle of the program object to be linked.
See also:  


 
→ top of page
Function glLoadIdentity
Replace the current matrix with the identity matrix
Signature
glLoadIdentity()
See also:  


 
→ top of page
Function glLoadMatrixf
Replace the current matrix with the specified matrix
Signature
glLoadMatrixf(Objectarray)
Arguments
Objectarray–Must hold at least 16 elements (column major layout)
See also:  


 
→ top of page
Function glLogicOp
Specify a logical pixel operation for color index rendering
Signature
glLogicOp(intopcode)
Arguments
intopcode–Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: GL_CLEAR, GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED, GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is GL_COPY.
See also:  


 
→ top of page
Function glMatrixMode
Specify which matrix is the current matrix
Signature
glMatrixMode(intmode)
Arguments
intmode–Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. The initial value is GL_MODELVIEW.
See also:  


 
→ top of page
Function glMultiTexCoord1f
Set the current texture coordinate
Signature
glMultiTexCoord1f(inttexture,
  floats 
  )  
Arguments
inttexture–Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTUREi, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value.
floats–Specify the s texture coordinate
See also:  


 
→ top of page
Function glMultiTexCoord2f
Set the current texture coordinates
Signature
glMultiTexCoord2f(inttexture,
  floats,
  floatt 
  )  
Arguments
inttexture–Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTUREi, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value.
floats–Specify the s texture coordinate
floatt–Specify the t texture coordinate
See also:  


 
→ top of page
Function glMultiTexCoord3f
Set the current texture coordinates
Signature
glMultiTexCoord3f(inttexture,
  floats,
  floatt,
  floatr 
  )  
Arguments
inttexture–Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTUREi, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value.
floats–Specify the s texture coordinate
floatt–Specify the t texture coordinate
floatr–Specify the r texture coordinate
See also:  


 
→ top of page
Function glNormal3f
Set the current normal vector
Signature
glNormal3f(floatnx,
  floatny,
  floatnz 
  )  
Arguments
floatnx–Specify the x coordinate of the new current normal
floatny–Specify the y coordinate of the new current normal
floatnz–Specify the z coordinate of the new current normal
See also:  


 
→ top of page
Function glOrtho
Multiply the current matrix with an orthographic matrix
Signature
glOrtho(floatleft,
  floatright,
  floatbottom,
  floattop,
  floatznear,
  floatzfar 
  )  
Arguments
floatleft–Specify the coordinate for the left vertical clipping plane.
floatright–Specify the coordinate for the right vertical clipping plane.
floatbottom–Specify the coordinate for the bottom horizontal clipping plane.
floattop–Specify the coordinate for the top horizontal clipping plane.
floatznear–Specify the distance to the near depth clipping planes. These values are negative if the plane is to be behind the viewer.
floatzfar–Specify the distance to the far depth clipping planes. These values are negative if the plane is to be behind the viewer.
See also:  


 
→ top of page
Function glPixelZoom
Specify the pixel zoom factors
Signature
glPixelZoom(floatxfactor,
  floatyfactor 
  )  
Arguments
floatxfactor–Specify the x zoom factor for pixel write operations.
floatyfactor–Specify the y zoom factor for pixel write operations.
See also:  


 
→ top of page
Function glPointParameterf
Specify point parameter
Signature
glPointParameterf(intpname,
  floatparam 
  )  
Arguments
intpname– Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted.
floatparam–Specifies the value to be assigned to pname
See also:  


 
→ top of page
Function glPointSize
Specify the diameter of rasterized points
Signature
glPointSize(floatsize)
Arguments
floatsize–Specifies the diameter of rasterized points. The initial value is 1.
See also:  


 
→ top of page
Function glPolygonMode
Select a polygon rasterization mode
Signature
glPolygonMode(intface,
  intmode 
  )  
Arguments
intface–Specifies the polygons that mode applies to. Must be GL_FRONT for front-facing polygons, GL_BACK for back-facing polygons, or GL_FRONT_AND_BACK for front- and back-facing polygons.
intmode–Specifies how polygons will be rasterized. Accepted values are GL_POINT, GL_LINE, and GL_FILL. The initial value is GL_FILL for both front- and back-facing polygons.
See also:  


 
→ top of page
Function glPolygonOffset
Set the scale and units used to calculate depth values
Signature
glPolygonOffset(floatfactor,
  floatunits 
  )  
Arguments
floatfactor– Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0.
floatunits–Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0.
See also:  


 
→ top of page
Function glPopAttrib
Pop the server attribute stack
Signature
glPopAttrib()
See also:  


 
→ top of page
Function glPopClientAttrib
Pop the client attribute stack
Signature
glPopClientAttrib()
See also:  


 
→ top of page
Function glPopMatrix
Pop the current matrix stack
Signature
glPopMatrix()
See also:  


 
→ top of page
Function glPushAttrib
Push the server attribute stack
Signature
glPushAttrib(intmask)
Arguments
intmask–
See also:  


 
→ top of page
Function glPushClientAttrib
Push the client attribute stack
Signature
glPushClientAttrib(intmask)
Arguments
intmask–
See also:  


 
→ top of page
Function glPushMatrix
Push the current matrix stack
Signature
glPushMatrix()
See also:  


 
→ top of page
Function glRasterPos2i
Specify the raster position for pixel operations
Signature
glRasterPos2i(intx,
  inty 
  )  
Arguments
intx–Specify the x object coordinate for the raster position.
inty–Specify the y object coordinate for the raster position.
See also:  


 
→ top of page
Function glRasterPos3f
Specify the raster position for pixel operations
Signature
glRasterPos3f(floatx,
  floaty,
  floatz 
  )  
Arguments
floatx–Specify the x object coordinate for the raster position.
floaty–Specify the y object coordinate for the raster position.
floatz–Specify the z object coordinate for the raster position.
See also:  


 
→ top of page
Function glReadBuffer
Select a color buffer source for pixels
Signature
glReadBuffer(intmode)
Arguments
intmode–Specifies a color buffer. Accepted values are GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, and GL_AUXi, where i is between 0 and →GL_AUX_BUFFERS-1.
See also:  


 
→ top of page
Function glRectf
Draw a rectangle
Signature
glRectf(floatx1,
  floaty1,
  floatx2,
  floaty2 
  )  
Arguments
floatx1–Specify one vertex of a rectangle.
floaty1–Specify one vertex of a rectangle.
floatx2–Specify the opposite vertex of the rectangle.
floaty2–Specify the opposite vertex of the rectangle.
See also:  


 
→ top of page
Function glRenderbufferStorage
Establish data storage, format and dimensions of a renderbuffer object's image
Signature
glRenderbufferStorage(inttarget,
  intinternalformat,
  intwidth,
  intheight 
  )  
Arguments
inttarget–Specifies a binding to which the target of the allocation and must be GL_RENDERBUFFER
intinternalformat–Specifies the internal format to use for the renderbuffer object's image
intwidth–Specifies the width of the renderbuffer, in pixels
intheight–Specifies the height of the renderbuffer, in pixels
See also:  


 
→ top of page
Function glRotatef
Multiply the current matrix by a rotation matrix
Signature
glRotatef(floatangle,
  floatx,
  floaty,
  floatz 
  )  
Arguments
floatangle–Specifies the angle of rotation, in degrees.
floatx–Specify the x coordinate of a vector, respectively.
floaty–Specify the y coordinate of a vector, respectively.
floatz–Specify the z coordinate of a vector, respectively.
See also:  


 
→ top of page
Function glSamplerParameteri
Set sampler parameters
Signature
glSamplerParameteri(intsampler,
  intpname,
  intparam 
  )  
Arguments
intsampler–Specifies the sampler object whose parameter to modify.
intpname–Specifies the symbolic name of a single-valued sampler parameter. pname can be one of the following: GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_LOD_BIAS, GL_TEXTURE_COMPARE_MODE, or GL_TEXTURE_COMPARE_FUNC
intparam–Specifies the value of pname
See also:  


 
→ top of page
Function glScalef
Multiply the current matrix by a general scaling matrix
Signature
glScalef(floatx,
  floaty,
  floatz 
  )  
Arguments
floatx–Specify scale factor along the x axis
floaty–Specify scale factor along the y axis
floatz–Specify scale factor along the z axis
See also:  


 
→ top of page
Function glScissor
Define the scissor box
Signature
glScissor(intx,
  inty,
  intwidth,
  intheight 
  )  
Arguments
intx–Specify the x coordinate of the lower left corner of the scissor box. Initially (0, 0)
inty–Specify the y coordinate of the lower left corner of the scissor box. Initially (0, 0)
intwidth–Specify the width of the scissor box
intheight–Specify the height of the scissor box
See also:  


 
→ top of page
Function glShadeModel
Select flat or smooth shading
Signature
glShadeModel(intmode)
Arguments
intmode–Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH.
See also:  


 
→ top of page
Function glStencilFunc
Set function and reference value for stencil testing
Signature
glStencilFunc(intfunc,
  floatref,
  intmask 
  )  
Arguments
intfunc–Specifies the test function. Eight tokens are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS.
floatref–Specifies the reference value for the stencil test. ref is clamped to the range [0,2n-1], where n is the number of bitplanes in the stencil buffer. The initial value is 0.
intmask–Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's.
See also:  


 
→ top of page
Function glStencilMask
Control the writing of individual bits in the stencil planes
Signature
glStencilMask(intmask)
Arguments
intmask–Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's.
See also:  


 
→ top of page
Function glStencilOp
Set stencil test actions
Signature
glStencilOp(intfail,
  intzfail,
  intzpass 
  )  
Arguments
intfail–Specifies the action to take when the stencil test fails. Six symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_DECR, and GL_INVERT. The initial value is GL_KEEP.
intzfail–Specifies the stencil action when the stencil test passes, but the depth test fails. zfail accepts the same symbolic constants as fail. The initial value is GL_KEEP.
intzpass–Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. zpass accepts the same symbolic constants as fail. The initial value is GL_KEEP.
See also:  


 
→ top of page
Function glTexCoord1f
Set the current texture coordinate
Signature
glTexCoord1f(floats)
Arguments
floats–Specify the s texture coordinate
See also:  


 
→ top of page
Function glTexCoord1i
Set the current texture coordinate
Signature
glTexCoord1i(ints)
Arguments
ints–Specify the s texture coordinate
See also:  


 
→ top of page
Function glTexCoord2f
Set the current texture coordinates
Signature
glTexCoord2f(floats,
  floatt 
  )  
Arguments
floats–Specify the s texture coordinate
floatt–Specify the t texture coordinate
See also:  


 
→ top of page
Function glTexCoord2i
Set the current texture coordinates
Signature
glTexCoord2i(ints,
  intt 
  )  
Arguments
ints–Specify the s texture coordinate
intt–Specify the t texture coordinate
See also:  


 
→ top of page
Function glTexCoord3f
Set the current texture coordinates
Signature
glTexCoord3f(floats,
  floatt,
  floatr 
  )  
Arguments
floats–Specify the s texture coordinate
floatt–Specify the t texture coordinate
floatr–Specify the r texture coordinate
See also:  


 
→ top of page
Function glTexEnvf
Set texture environment parameters
Signature
glTexEnvf(inttarget,
  intpname,
  intparam 
  )  
Arguments
inttarget–Specifies a texture environment. Must be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE.
intpname–Specifies the symbolic name of a single-valued texture environment parameter. Must be GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE
intparam–Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE.
See also:  


 
→ top of page
Function glTexEnvi
Set texture environment parameters
Signature
glTexEnvi(inttarget,
  intpname,
  intparam 
  )  
Arguments
inttarget–Specifies a texture environment. Must be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE.
intpname–Specifies the symbolic name of a single-valued texture environment parameter. Must be GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE
intparam–Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE.
See also:  


 
→ top of page
Function glTexGeni
Control the generation of texture coordinates
Signature
glTexGeni(intcoord,
  intpname,
  intparam 
  )  
Arguments
intcoord–Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q.
intpname–Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE.
intparam–Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, or GL_SPHERE_MAP.
See also:  


 
→ top of page
Function glTexImage1D
Reserve memory for a 1D texture.
Signature
glTexImage1D(inttarget,
  intlevel,
  intinternalformat,
  intwidth,
  intborder,
  intformat,
  inttype 
  )  
Arguments
inttarget–
intlevel–
intinternalformat–
intwidth–
intborder–
intformat–
inttype–
Description

The pixels parameter is ignored, for now.
Also see the Texture class.
See also:  


 
→ top of page
Function glTexImage2D
Reserve memory for a 2D texture.
Signature
glTexImage2D(inttarget,
  intlevel,
  intinternalformat,
  intwidth,
  intheight,
  intborder,
  intformat,
  inttype 
  )  
Arguments
inttarget–
intlevel–
intinternalformat–
intwidth–
intheight–
intborder–
intformat–
inttype–
Description

The pixels parameter is ignored, for now.
Also see the Texture class.
See also:  


 
→ top of page
Function glTexImage3D
Specify a three-dimensional texture image
Signature
glTexImage3D(inttarget,
  intlevel,
  intinternalFormat,
  intwidth,
  intheight,
  intdepth,
  intborder,
  intformat,
  inttype,
  Objectpixels 
  )  
Arguments
inttarget–Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D
intlevel–Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
intinternalFormat–Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, or GL_RGBA16.
intwidth–Specifies the width of the texture image.
intheight–Specifies the height of the texture image.
intdepth–Specifies the depth of the texture image
intborder–Specifies the width of the border. Must be either 0 or 1.
intformat–Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA.
inttype–Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, →GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, →GL_UNSIGNED_BYTE_3_3_2, →GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, →GL_UNSIGNED_SHORT_4_4_4_4, →GL_UNSIGNED_SHORT_4_4_4_4_REV, →GL_UNSIGNED_SHORT_5_5_5_1, →GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, →GL_UNSIGNED_INT_10_10_10_2, and →GL_UNSIGNED_INT_2_10_10_10_REV.
Objectpixels–Currently ignored. I.e, this call can currently only be used to allocate data for render-to-texture use.
Description

The pixels parameter is ignored, for now.
See also:  


 
→ top of page
Function glTexParameteri
Set texture parameters.
Signature
glTexParameteri(inttarget,
  intpname,
  intparam 
  )  
Arguments
inttarget–Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D or GL_TEXTURE_CUBE_MAP.
intpname–Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, or GL_TEXTURE_PRIORITY.
intparam–
Description

 
Note: For some obscure(?) reason, omitting this call before uploading a texture will cause GL to silently fail and simply render foreground-color filled triangles. (The Texture class takes care of this automatically).
See also:  


 
→ top of page
Function glTexSubImage2D
Specify a two-dimensional texture subimage.
Signature
glTexSubImage2D(inttarget,
  intlevel,
  intxoffset,
  intyoffset,
  intwidth,
  intheight,
  intformat,
  inttype,
  intoffset 
  )  
Arguments
inttarget–Specifies the target texture. Must be GL_TEXTURE_2D.
intlevel–Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
intxoffset–Specifies a texel offset in the x direction within the texture array.
intyoffset–Specifies a texel offset in the y direction within the texture array.
intwidth–Specifies the width of the texture subimage.
intheight–Specifies the height of the texture subimage.
intformat–
inttype–
intoffset–
Description

Please notice that texture uploads are usually handled in the Texture class. This function is merely useful when working with OpenGL 2.1 pixel buffer objects (PBO).
See also:  


 
→ top of page
Function glTranslatef
Multiply the current matrix by a translation matrix
Signature
glTranslatef(floatx,
  floaty,
  floatz 
  )  
Arguments
floatx–Specify the x coordinate of a translation vector
floaty–Specify the y coordinate of a translation vector
floatz–Specify the z coordinate of a translation vector
See also:  


 
→ top of page
Function glUniform1f
Specify the value of a uniform variable for the current program object
Signature
glUniform1f(intlocation,
  floatv0 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
floatv0–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform1i
Specify the value of a uniform variable for the current program object
Signature
glUniform1i(intlocation,
  intv0 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intv0–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform2f
Specify the values of a uniform variable for the current program object
Signature
glUniform2f(intlocation,
  floatv0,
  floatv1 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
floatv0–Specifies the new value to be used for the specified uniform variable
floatv1–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform2i
Specify the values of a uniform variable for the current program object
Signature
glUniform2i(intlocation,
  intv0,
  intv1 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intv0–Specifies the new value to be used for the specified uniform variable
intv1–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform3f
Specify the values of a uniform variable for the current program object
Signature
glUniform3f(intlocation,
  floatv0,
  floatv1,
  floatv2 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
floatv0–Specifies the new value to be used for the specified uniform variable
floatv1–Specifies the new value to be used for the specified uniform variable
floatv2–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform3i
Specify the values of a uniform variable for the current program object
Signature
glUniform3i(intlocation,
  intv0,
  intv1,
  intv2 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intv0–Specifies the new value to be used for the specified uniform variable
intv1–Specifies the new value to be used for the specified uniform variable
intv2–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform4f
Specify the values of a uniform variable for the current program object
Signature
glUniform4f(intlocation,
  floatv0,
  floatv1,
  floatv2,
  floatv3 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
floatv0–Specifies the new value to be used for the specified uniform variable
floatv1–Specifies the new value to be used for the specified uniform variable
floatv2–Specifies the new value to be used for the specified uniform variable
floatv3–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniform4i
Specify the values of a uniform variable for the current program object
Signature
glUniform4i(intlocation,
  intv0,
  intv1,
  intv2,
  intv3 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intv0–Specifies the new value to be used for the specified uniform variable
intv1–Specifies the new value to be used for the specified uniform variable
intv2–Specifies the new value to be used for the specified uniform variable
intv3–Specifies the new value to be used for the specified uniform variable
See also:  


 
→ top of page
Function glUniformMatrix2fv
Specify the values of a uniform 2x2 matrix variable for the current program object
Signature
glUniformMatrix2fv(intlocation,
  intcount,
  booleantranpose,
  Objecta 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intcount–Specifies the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices (currently limited to 256 elements, i.e. 64 2x2 matrices)
booleantranpose–
Objecta–Array object (non-float array values will be converted to float)
See also:  


 
→ top of page
Function glUniformMatrix3fv
Specify the values of a uniform 3x3 matrix variable for the current program object
Signature
glUniformMatrix3fv(intlocation,
  intcount,
  booleantranpose,
  Objecta 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intcount–Specifies the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices (currently limited to 252 elements, i.e. 28 3x3 matrices)
booleantranpose–
Objecta–Array object (non-float array values will be converted to float)
See also:  


 
→ top of page
Function glUniformMatrix4fv
Specify the values of a uniform 4x4 matrix variable for the current program object
Signature
glUniformMatrix4fv(intlocation,
  intcount,
  booleantranpose,
  Objecta 
  )  
Arguments
intlocation–Specifies the location of the uniform variable to be modified.
intcount–Specifies the number of matrices that are to be modified. This should be 1 if the targeted uniform variable is not an array of matrices, and 1 or more if it is an array of matrices (currently limited to 256 elements, i.e. 16 4x4 matrices)
booleantranpose–
Objecta–Array object (non-float array values will be converted to float)
See also:  


 
→ top of page
Function glUnmapBuffer
Unmap buffer object
Signature
glUnmapBuffer(inttarget)
 :boolean
Arguments
inttarget–Specifies the target buffer object being unmapped. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
Returns
boolean–true if the buffer has been unmapped, false otherwise
See also:  


 
→ top of page
Function glUseProgram
Installs a program object as part of current rendering state
Signature
glUseProgram(intprogram)
Arguments
intprogram–Specifies the handle of the program object whose executables are to be used as part of current rendering state
See also:  


 
→ top of page
Function glValidateProgram
Validates a program object
Signature
glValidateProgram(intprogram)
Arguments
intprogram–Specifies the handle of the program object to be validated.
See also:  


 
→ top of page
Function glVertex2f
Specify a vertex
Signature
glVertex2f(floatx,
  floaty 
  )  
Arguments
floatx–Specify x coordinate of a vertex
floaty–Specify y coordinate of a vertex
See also:  


 
→ top of page
Function glVertex2i
Specify a vertex
Signature
glVertex2i(intx,
  inty 
  )  
Arguments
intx–Specify x coordinate of a vertex
inty–Specify y coordinate of a vertex
See also:  


 
→ top of page
Function glVertex3f
Specify a vertex
Signature
glVertex3f(floatx,
  floaty,
  floatz 
  )  
Arguments
floatx–Specify x coordinate of a vertex
floaty–Specify y coordinate of a vertex
floatz–Specify z coordinate of a vertex
See also:  


 
→ top of page
Function glVertex4f
Specify a vertex
Signature
glVertex4f(floatx,
  floaty,
  floatz,
  floatw 
  )  
Arguments
floatx–Specify x coordinate of a vertex
floaty–Specify y coordinate of a vertex
floatz–Specify z coordinate of a vertex
floatw–Specify w coordinate of a vertex
See also:  


 
→ top of page
Function glVertexAttrib1f
Specifies the value of a generic vertex attribute
Signature
glVertexAttrib1f(intindex,
  floatv0 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
floatv0–Specifies the new value to be used for the specified vertex attribute
See also:  


 
→ top of page
Function glVertexAttrib2f
Specifies the values of a generic vertex attribute
Signature
glVertexAttrib2f(intindex,
  floatv0,
  floatv1 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
floatv0–Specifies the new value to be used for the specified vertex attribute
floatv1–Specifies the new value to be used for the specified vertex attribute
See also:  


 
→ top of page
Function glVertexAttrib3f
Specifies the values of a generic vertex attribute
Signature
glVertexAttrib3f(intindex,
  floatv0,
  floatv1,
  floatv2 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
floatv0–Specifies the new value to be used for the specified vertex attribute
floatv1–Specifies the new value to be used for the specified vertex attribute
floatv2–Specifies the new value to be used for the specified vertex attribute
See also:  


 
→ top of page
Function glVertexAttrib4f
Specifies the values of a generic vertex attribute
Signature
glVertexAttrib4f(intindex,
  floatv0,
  floatv1,
  floatv2,
  floatv3 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
floatv0–Specifies the new value to be used for the specified vertex attribute
floatv1–Specifies the new value to be used for the specified vertex attribute
floatv2–Specifies the new value to be used for the specified vertex attribute
floatv3–Specifies the new value to be used for the specified vertex attribute
See also:  


 
→ top of page
Function glVertexAttrib4Nub
Specifies the values of a generic vertex attribute
Signature
glVertexAttrib4Nub(intindex,
  bytev0,
  bytev1,
  bytev2,
  bytev3 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
bytev0–Specifies the new value to be used for the specified vertex attribute
bytev1–Specifies the new value to be used for the specified vertex attribute
bytev2–Specifies the new value to be used for the specified vertex attribute
bytev3–Specifies the new value to be used for the specified vertex attribute
See also:  


 
→ top of page
Function glVertexAttribPointer
Define an array of generic vertex attribute data
Signature
glVertexAttribPointer(intindex,
  intsize,
  inttype,
  booleannormalized,
  intstride,
  Objecta 
  )  
Arguments
intindex–Specifies the index of the generic vertex attribute to be modified
intsize–Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4.
inttype–Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT.
booleannormalized–Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed
intstride–Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0.
Objecta–Specifies the array object holding the vertex attribute data
See also:  


 
→ top of page
Function glViewport
Set the viewport
Signature
glViewport(intx,
  inty,
  intwidth,
  intheight 
  )  
Arguments
intx–Specify the x coordinate of the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0).
inty–Specify the y coordinate of the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0).
intwidth–Specify the width of the viewport. When a GL context is first attached to a window, width is set to the dimension of that window.
intheight–Specify the height of the viewport. When a GL context is first attached to a window, height is set to the dimension of that window.
See also:  


 
→ top of page
Function zglBufferData
Creates and initializes a buffer object's data store
Signature
zglBufferData(inttarget,
  intsize,
  Objectdata,
  intusage 
  )  
Arguments
inttarget–Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER.
intsize–Initialize buffer size in bytes. If size is < 0, the size will be set to data.numElements*sizeof(float). @data Specifies a pointer to data that will be copied into the data store for initialization, or null if no data is to be copied.
Objectdata–
intusage–Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STATIC_DRAW or GL_DYNAMIC_DRAW.
See also:  


 
→ top of page
Function zglBufferSubData
Updates a subset of a buffer object's data store.
Signature
zglBufferSubData(inttarget,
  intoffset,
  intsize,
  Objectdata 
  )  
Arguments
inttarget–Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER.
intoffset–Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes.
intsize–Specifies the size in bytes of the data store region being replaced. @data Specifies a pointer to data that will be copied into the data store.
Objectdata–
See also:  


 
→ top of page
Function zglClipPlane
Specify a plane against which all geometry is clipped
Signature
zglClipPlane(intplane,
  floateq0,
  floateq1,
  floateq2,
  floateq3 
  )  
Arguments
intplane–Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES -1, are accepted.
floateq0–
floateq1–
floateq2–
floateq3–
See also:  


 
→ top of page
Function zglColor1f
Set the current color (grayscale)
Signature
zglColor1f(floatlum)
Arguments
floatlum–Luminance component (replicated for red/green/blue/alpha)
See also:  


 
→ top of page
Function zglColorARGB
Set the current color
Signature
zglColorARGB(intargb32)
Arguments
intargb32–Packed 32bit ARGB32 color
See also:  


 
→ top of page
Function zglColorOffset
Set color pointer offset within currently bound buffer object
Signature
zglColorOffset(intsize,
  inttype,
  intstride,
  intoffset 
  )  
Arguments
intsize–Specifies the number of components per color; must 3 or 4.
inttype–Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted.
intstride–Specifies the byte offset between consecutive colors. If stride is zero (the initial value), the colors are understood to be tightly packed in the array.
intoffset–Specifies the offset to the first component of the first color element in the array.
See also:  


 
→ top of page
Function zglColorPointer3f
Define an array of RGB color data
Signature
zglColorPointer3f(Objectarray)
Arguments
Objectarray–Specifies the pointer to the color data
Description

Note: Stride is assumed to be 0 and type is GL_FLOAT.
See also:  


 
→ top of page
Function zglColorPointer4b
Define an array of RGBA color data
Signature
zglColorPointer4b(Objectarray)
Arguments
Objectarray–Specifies the pointer to the color data
Description

Note: Stride is assumed to be 0 and type is GL_UNSIGNED_BYTE.
See also:  


 
→ top of page
Function zglColorPointer4f
Define an array of RGBA color data
Signature
zglColorPointer4f(Objectarray)
Arguments
Objectarray–Specifies the pointer to the color data
Description

Note: Stride is assumed to be 0 and type is GL_FLOAT.
See also:  


 
→ top of page
Function zglDeleteBuffer
Delete buffer object
Signature
zglDeleteBuffer(intid)
Arguments
intid–Buffer object name id
See also:  


 
→ top of page
Function zglDeleteFramebuffer
Delete framebuffer objects
Signature
zglDeleteFramebuffer(intframebuffer)
Arguments
intframebuffer–Framebuffer object name
See also:  


 
→ top of page
Function zglDeleteRenderbuffer
Delete renderbuffer objects
Signature
zglDeleteRenderbuffer(intrenderbuffer)
Arguments
intrenderbuffer–Specifies the number of renderbuffer objects to be deleted.
See also:  


 
→ top of page
Function zglDeleteSampler
Delete named sampler object
Signature
zglDeleteSampler(intid)
Arguments
intid–
See also:  


 
→ top of page
Function zglDeleteTexture
Delete texture object.
Signature
zglDeleteTexture():int texture
Returns
int texture–
Description

 
Please notice that the Texture class usually handles texture handling.
See also:  


 
→ top of page
Function zglFogAlphaMode
Specifies the equation to be used to compute the fog alpha color.
Signature
zglFogAlphaMode(intmode)
Arguments
intmode–Three symbolic constants are accepted: GL_REPLACE (OpenGL behaviour, discard fogcolor.alpha, blend to fogcolor RGB and keep primitive alpha), GL_BLEND (full fog color+alpha blending), and GL_MULT (blend to fog alpha multiplied by primitive alpha). The initial fog alpha mode is GL_REPLACE.
Description

This is an extension to the regular OpenGL fog feature which is only available if tkopengl is compiled in emulation mode (DX_EMU_FOG / DX_EMU_FIXFXN).
When drawing transparent objects, GL_BLEND can be used to fade-out primitives (if fog alpha is 0.0) resp. GL_MULT alpha mode can be used to fade to an alpha relative to the primitive alpha (out_alpha = mix(frag_alpha*fog_alpha, frag_alpha, fog_amount)).
See also:  


 
→ top of page
Function zglFogColor4f
Set fog color
Signature
zglFogColor4f(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
Description

 
Note: OpenGL actually ignores the alpha component which means that fogging can NOT be used to fade out objects.
See also:  


 
→ top of page
Function zglFogDensity
Specify the fog density
Signature
zglFogDensity(floatparam)
Arguments
floatparam–Only nonnegative densities are accepted. The initial fog density is 1.
See also:  


 
→ top of page
Function zglFogEnd
Specify fog far distance
Signature
zglFogEnd(floatparam)
Arguments
floatparam–Fog far distance. The initial far distance is 1.
See also:  


 
→ top of page
Function zglFogMode
Specifies the equation to be used to compute the fog blend factor
Signature
zglFogMode(intmode)
Arguments
intmode–Three symbolic constants are accepted: GL_LINEAR, GL_EXP, and GL_EXP2. The initial fog mode is GL_EXP.
See also:  


 
→ top of page
Function zglFogStart
Specify fog near distance
Signature
zglFogStart(floatparam)
Arguments
floatparam–Fog near distance. The initial near distance is 0.
See also:  


 
→ top of page
Function zglFrustum
Multiply the current matrix by a perspective matrix
Signature
zglFrustum(floatleft,
  floatright,
  floatbottom,
  floattop,
  floatznear,
  floatzfar 
  )  
Arguments
floatleft–Specify the coordinate of the left vertical clipping plane
floatright–Specify the coordinate of the right vertical clipping plane
floatbottom–Specify the coordinate of the bottom horizontal clipping plane
floattop–Specify the coordinate of the top horizontal clipping plane
floatznear–Specify the distance to the near depth clipping plane
floatzfar–Specify the distance to the far depth clipping plane
See also:  


 
→ top of page
Function zglGenBuffer
Generate buffer object name id
Signature
zglGenBuffer():int
Returns
int–Buffer object name id
See also:  


 
→ top of page
Function zglGenFramebuffer
Generate framebuffer object names
Signature
zglGenFramebuffer():int
Returns
int–Framebuffer object name
See also:  


 
→ top of page
Function zglGenRenderbuffer
Generate renderbuffer object names
Signature
zglGenRenderbuffer():int
Returns
int–Renderbuffer object name
See also:  


 
→ top of page
Function zglGenSampler
Generate sampler object name
Signature
zglGenSampler():int
Returns
int–The generated sampler object name
See also:  


 
→ top of page
Function zglGenTexture
Generate texture name.
Signature
zglGenTexture():int
Returns
int–generated texture name
Description

 
Please notice that the Texture class usually handles texture handling.
See also:  


 
→ top of page
Function zglGetActiveUniform
Returns information about an active uniform variable for the specified program object
Signature
zglGetActiveUniform(intprogram,
  intindex,
  IntegerretSize,
  StringretName 
  )  
 :int
Arguments
intprogram–Specifies the program object to be queried.
intindex–Specifies the index of the uniform variable to be queried
IntegerretSize–Returns the size of the uniform variable (can be null if not needed)
StringretName–Return the name of the uniform variable. The string is resized, if necessary.
Returns
int–Data type of the uniform variable
See also:  


 
→ top of page
Function zglGetFloat
Return the value of a selected parameter
Signature
zglGetFloat(intname)
 :float
Arguments
intname–Specifies a symbolic constant
Returns
float–current parameter value
See also:  


 
→ top of page
Function zglGetFramebufferAttachmentParameteri
Retrieve information about attachments of a bound framebuffer object
Signature
zglGetFramebufferAttachmentParameteri(inttarget,
  intattachment,
  intpname 
  )  
 :int
Arguments
inttarget–Specifies the target of the query operation.
intattachment–Specifies the attachment within target
intpname–Specifies the parameter of attachment to query
Returns
int–The value of pname for attachment
See also:  


 
→ top of page
Function zglGetInteger
Return the value of a selected parameter
Signature
zglGetInteger(intname)
 :int
Arguments
intname–Specifies a symbolic constant, e.g. GL_MAX_TEXTURE_UNITS, GL_MAX_TEXTURE_COORDS, GL_MAX_ELEMENTS_VERTICES, GL_MAX_ELEMENTS_INDICES, GL_ACTIVE_TEXTURE, GL_CLIENT_ACTIVE_TEXTURE. Note: Not all GL parameter names are exported in the tkopengl plugin but as a workaround you can still pass the raw hex value (see gl.h, glext.h)
Returns
int–current parameter value
See also:  


 
→ top of page
Function zglGetProgrami
Returns a parameter from a program object
Signature
zglGetProgrami(intprogram,
  intpname 
  )  
 :int
Arguments
intprogram–
intpname–
Returns
int–Returns the requested object parameter
See also:  


 
→ top of page
Function zglGetRenderbufferParameteri
Signature
zglGetRenderbufferParameteri(inttarget,
  intpname 
  )  
 :int
Arguments
inttarget–
intpname–
Returns
int–
See also:  


 
→ top of page
Function zglGetShaderi
Returns a parameter from a shader object
Signature
zglGetShaderi(intshader,
  intpname 
  )  
 :int
Arguments
intshader–Specifies the shader object to be queried.
intpname–
Returns
int–Returns the requested object parameter
See also:  


 
→ top of page
Function zglInit2D
Load 2D projection matrix
Signature
zglInit2D(floatw,
  floath 
  )  
Arguments
floatw–Width
floath–Height
Description

(0; 0) is located in the top/left corner of the screen
See also:  


 
→ top of page
Function zglInitOrtho
Load orthogonal projection matrix
Signature
zglInitOrtho(floatw,
  floath 
  )  
Arguments
floatw–Quadrant width
floath–Quadrant height
Description

(0; 0) is located at the center of the screen
See also:  


 
→ top of page
Function zglInitPerspective
Load perspective projection matrix
Signature
zglInitPerspective(floataspect,
  floatfov,
  floatznear,
  floatzfar 
  )  
Arguments
floataspect–Aspect ratio
floatfov–Field of view (1..180)
floatznear–Distance to near clipping plane
floatzfar–Distance to far clipping plane
See also:  


 
→ top of page
Function zglLightAmbient4f
Set light source ambient color parameter
Signature
zglLightAmbient4f(intlight,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intlight–GL_LIGHTi
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightConstantAttenuation
Set light source constant attenuation
Signature
zglLightConstantAttenuation(intlight,
  floatfactor 
  )  
Arguments
intlight–GL_LIGHTi
floatfactor–Constant attenuation factor
See also:  


 
→ top of page
Function zglLightDiffuse4f
Set light source diffuse color parameter
Signature
zglLightDiffuse4f(intlight,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intlight–GL_LIGHTi
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightLinearAttenuation
Set light source linear attenuation
Signature
zglLightLinearAttenuation(intlight,
  floatfactor 
  )  
Arguments
intlight–GL_LIGHTi
floatfactor–Linear attenuation factor
See also:  


 
→ top of page
Function zglLightMaterialAmbient4f
Set ambient material color
Signature
zglLightMaterialAmbient4f(intface,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightMaterialAmbientAndDiffuse4f
Set both ambient and diffuse material colors
Signature
zglLightMaterialAmbientAndDiffuse4f(intface,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightMaterialDiffuse4f
Set diffuse material color
Signature
zglLightMaterialDiffuse4f(intface,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightMaterialEmission4f
Set emissive material color
Signature
zglLightMaterialEmission4f(intface,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightMaterialShininess
Set material shininess
Signature
zglLightMaterialShininess(intface,
  floatexp 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatexp–0..127
See also:  


 
→ top of page
Function zglLightMaterialSpecular4f
Set specular material color
Signature
zglLightMaterialSpecular4f(intface,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intface–Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightModelAmbient4f
Set ambient scene color
Signature
zglLightModelAmbient4f(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightModelColorControl
Configure single color / separate specular color lighting mode.
Signature
zglLightModelColorControl(intmode)
Arguments
intmode–
Description

When GL_SEPARATE_SPECULAR_COLOR mode is selected, the specular component will be applied (added) after texture mapping.
See also:  


 
→ top of page
Function zglLightModelLocalViewer
Configure local viewer light model
Signature
zglLightModelLocalViewer(booleanparam)
Arguments
booleanparam–If param is 0 (or 0.0), specular reflection angles take the view direction to be parallel to and in the direction of the -z axis, regardless of the location of the vertex in eye coordinates. Otherwise, specular reflections are computed from the origin of the eye coordinate system. The initial value is 0.
See also:  


 
→ top of page
Function zglLightModelTwoSide
Configure two sided light model
Signature
zglLightModelTwoSide(booleanparam)
Arguments
booleanparam–If params is 0 (or 0.0), one-sided lighting is specified, and only the front material parameters are used in the lighting equation. Otherwise, two-sided lighting is specified
See also:  


 
→ top of page
Function zglLightPositionf
Set light source position
Signature
zglLightPositionf(intlight,
  floatx,
  floaty,
  floatz,
  floatw 
  )  
Arguments
intlight–GL_LIGHTi
floatx–X position of light in homogeneous object coordinates
floaty–Y position of light in homogeneous object coordinates
floatz–Z position of light in homogeneous object coordinates
floatw–W position of light in homogeneous object coordinates
See also:  


 
→ top of page
Function zglLightQuadraticAttenuation
Set light source quadratic attenuation
Signature
zglLightQuadraticAttenuation(intlight,
  floatfactor 
  )  
Arguments
intlight–GL_LIGHTi
floatfactor–Quadratic attenuation factor
See also:  


 
→ top of page
Function zglLightSpecular4f
Set light source specular color parameter
Signature
zglLightSpecular4f(intlight,
  floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
intlight–GL_LIGHTi
floatr–Red component
floatg–Green component
floatb–Blue component
floata–Alpha component
See also:  


 
→ top of page
Function zglLightSpotCutOff
Set spotlight cutoff
Signature
zglLightSpotCutOff(intlight,
  floatcutoff 
  )  
Arguments
intlight–GL_LIGHTi
floatcutoff–0..90, 180
See also:  


 
→ top of page
Function zglLightSpotDirectionf
Set spotlight direction
Signature
zglLightSpotDirectionf(intlight,
  floatx,
  floaty,
  floatz 
  )  
Arguments
intlight–GL_LIGHTi
floatx–X direction of spotlight in homogeneous object coordinates
floaty–Y direction of spotlight in homogeneous object coordinates
floatz–Z direction of spotlight in homogeneous object coordinates
See also:  


 
→ top of page
Function zglLightSpotExponent
Set spotlight exponent
Signature
zglLightSpotExponent(intlight,
  floatexp 
  )  
Arguments
intlight–GL_LIGHTi
floatexp–0..127
See also:  


 
→ top of page
Function zglLoadExtensions
Resolve OpenGL extensions.
Signature
zglLoadExtensions()
Description

Must be called after window/screen has been openend if the application wishes to use >v1.1 GL functions (e.g. buffer objects, see zglGenBuffer())
(note) tkopengl v0.9.9.10+ auto-loads the extensions when a viewport/window is opened

 
→ top of page
Function zglMapBuffer
Map a buffer object's data store
Signature
zglMapBuffer(inttarget,
  intaccess,
  Bufferbuffer,
  intbyteSize 
  )  
Arguments
inttarget–Specifies the target buffer object being mapped. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER.
intaccess–Specifies the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. The symbolic constant must be GL_READ_ONLY, GL_WRITE_ONLY, or GL_READ_WRITE.
Bufferbuffer–Returns the data store address mapped to the client's address space. The old buffer contents,if any, will be freed prior to setting the new buffer pointer and size.
intbyteSize–Number of bytes. This should be the same size that was passed to zglBufferData(). Note: leaving this up to the application can result in access to unmapped memory. Be careful.
See also:  


 
→ top of page
Function zglNormalOffset
Set normal pointer offset within currently bound buffer object
Signature
zglNormalOffset(inttype,
  intstride,
  intoffset 
  )  
Arguments
inttype–Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted.
intstride–Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array.
intoffset–Specifies the offset to the first coordinate of the first normal in the array.
See also:  


 
→ top of page
Function zglNormalPointer
Define an array of normal data
Signature
zglNormalPointer(Objectarray)
Arguments
Objectarray–Specifies the pointer to the normal data
Description

Note: Stride is assumed to be 0 and type is GL_FLOAT.
See also:  


 
→ top of page
Function zglPointParameter3f
Specify point parameters
Signature
zglPointParameter3f(intpname,
  floatparam 
  )  
Arguments
intpname–GL_POINT_DISTANCE_ATTENUATION is accepted
floatparam–Specifies the values to be assigned to pname
See also:  


 
→ top of page
Function zglReadColorPixel
Read a single pixel from the frame buffer
Signature
zglReadColorPixel(intx,
  inty 
  )  
 :int
Arguments
intx–Specify the window x coordinate of the pixel that is read from the frame buffer.
inty–Specify the window y coordinate of the pixel that is read from the frame buffer.
Returns
int–Pixel (GL_RGBA in native host byte order)
See also:  


 
→ top of page
Function zglReadColorPixelsX
Read a line of pixels from the frame buffer
Signature
zglReadColorPixelsX(Objecttex,
  intoff,
  intx,
  inty,
  intsx 
  )  
Arguments
Objecttex–Specify the target texture (or array)
intoff–Specify the texture pixel write offset
intx–Specify the window x coordinate of the pixel that is read from the frame buffer.
inty–Specify the window y coordinate of the pixel that is read from the frame buffer.
intsx–Specify the number of pixels to read
See also:  


 
→ top of page
Function zglReadDepthPixel
Read a single depth value from the depth buffer
Signature
zglReadDepthPixel(intx,
  inty 
  )  
 :float
Arguments
intx–Specify the window x coordinate of the pixel that is read from the frame buffer.
inty–Specify the window y coordinate of the pixel that is read from the frame buffer.
Returns
float–Depth value
See also:  


 
→ top of page
Function zglShaderSource
Replaces the source code in a shader object
Signature
zglShaderSource(intshader,
  Stringsource 
  )  
Arguments
intshader–Specifies the handle of the shader object whose source code is to be replaced
Stringsource–Specifies the source code to be loaded into the shader
See also:  


 
→ top of page
Function zglTexCoordOffset
Set texture coordinate pointer offset within currently bound buffer object
Signature
zglTexCoordOffset(intsize,
  inttype,
  intstride,
  intoffset 
  )  
Arguments
intsize–Specifies the number of coordinates per array element. Must be 1, 2, 3 or 4
inttype– Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted.
intstride–Specifies the byte offset between consecutive array elements. If stride is 0, the array elements are understood to be tightly packed.
intoffset–Specifies an offset to the first coordinate of the first element in the array.
See also:  


 
→ top of page
Function zglTexCoordPointer1f
Define an array of texture coordinate data
Signature
zglTexCoordPointer1f(Objectarray)
Arguments
Objectarray–Specifies the pointer to the texture coordinate data
Description

Note: Stride is assumed to be 0 and type is GL_FLOAT.
See also:  


 
→ top of page
Function zglTexCoordPointer2f
Define an array of texture coordinate data
Signature
zglTexCoordPointer2f(Objectarray)
Arguments
Objectarray–Specifies the pointer to the texture coordinate data
Description

Note: Stride is assumed to be 0 and type is GL_FLOAT.
See also:  


 
→ top of page
Function zglTexEnvColor4f
Set texture environment color
Signature
zglTexEnvColor4f(floatr,
  floatg,
  floatb,
  floata 
  )  
Arguments
floatr–Red value
floatg–Green value
floatb–Blue value
floata–Alpha value
See also:  


 
→ top of page
Function zglTexGen4f
Control the generation of texture coordinates
Signature
zglTexGen4f(intcoord,
  intpname,
  floatp1,
  floatp2,
  floatp3,
  floatp4 
  )  
Arguments
intcoord–Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q.
intpname–Specifies the symbolic name of the texture-coordinate generation function. Must be GL_OBJECT_PLANE, or GL_EYE_PLANE.
floatp1–First coefficient for the texture-coordinate generation function specified by pname.
floatp2–Second coefficient for the texture-coordinate generation function specified by pname.
floatp3–Third coefficient for the texture-coordinate generation function specified by pname.
floatp4–Fourth coefficient for the texture-coordinate generation function specified by pname.
See also:  


 
→ top of page
Function zgluLookAt
Define a viewing transformation
Signature
zgluLookAt(Objecteye,
  Objectcenter,
  Objectup 
  )  
Arguments
Objecteye–Eye vector (3 elements)
Objectcenter–Center vector (3 elements)
Objectup–Up vector (3 elements)
Description

 
You may pass objects that support the yac array interface (e.g. FloatArray, ListNode, tkmath.Vector3f and so on).
See also:  


 
→ top of page
Function zglVertexOffset
Set vertex pointer offset within currently bound buffer object
Signature
zglVertexOffset(intsize,
  inttype,
  intstride,
  intoffset 
  )  
Arguments
intsize–Specifies the number of coordinates per vertex; must be 2, 3, or 4.
inttype–Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted.
intstride–Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array.
intoffset–Specifies the offset to the first coordinate of the first vertex in the array.
See also:  


 
→ top of page
Function zglVertexPointer
Define an array of vertex data
Signature
zglVertexPointer(Objectarray)
Arguments
Objectarray–Specifies the pointer to the vertex data
Description

Note: Stride is assumed to be 0, type is GL_FLOAT and size is 3.
See also:  


 
→ top of page
Function zglVertexPointer2f
Define an array of vertex data
Signature
zglVertexPointer2f(Objectarray)
Arguments
Objectarray–Specifies the pointer to the vertex data
Description

Note: Stride is assumed to be 0, type is GL_FLOAT and size is 2.
See also:  


 
→ top of page
Project Modules:tkopengl 
Project Classes:DisplayList , Texture 
Project Functions:glActiveTexture , glAlphaFunc , glArrayElement , glAttachShader , glBegin , glBindAttribLocation , glBindBuffer , glBindFragDataLocation , glBindFragDataLocationIndexed , glBindFramebuffer , glBindRenderbuffer , glBindSampler , glBindTexture , glBlendColor , glBlendEquation , glBlendFunc , glBlendFuncSeparate , glCallList , glCheckFramebufferStatus , glClear , glClearColor , glClearDepth , glClearStencil , glClientActiveTexture , glColor3f , glColor3ub , glColor4f , glColor4ub , glColorMask , glColorMaterial , glCompileShader , glCopyPixels , glCopyTexImage2D , glCopyTexSubImage2D , glCopyTexSubImage3D , glCreateProgram , glCreateShader , glCullFace , glDeleteProgram , glDeleteShader , glDepthFunc , glDepthMask , glDetachShader , glDisable , glDisableClientState , glDisableVertexAttribArray , glDrawArrays , glDrawBuffer , glDrawBuffers , glDrawElements , glEdgeFlag , glEnable , glEnableClientState , glEnableVertexAttribArray , glEnd , glFinish , glFlush , glFramebufferRenderbuffer , glFramebufferTexture1D , glFramebufferTexture2D , glFramebufferTexture3D , glFrontFace , glFrustum , glGenerateMipmap , glGetAttribLocation , glGetError , glGetFloatv , glGetFragDataIndex , glGetFragDataLocation , glGetIntegerv , glGetProgramInfoLog , glGetShaderInfoLog , glGetString , glGetUniformLocation , glHint , glIsBuffer , glIsEnabled , glIsFramebuffer , glIsRenderbuffer , glLightModeli , glLineStipple , glLineWidth , glLinkProgram , glLoadIdentity , glLoadMatrixf , glLogicOp , glMatrixMode , glMultiTexCoord1f , glMultiTexCoord2f , glMultiTexCoord3f , glNormal3f , glOrtho , glPixelZoom , glPointParameterf , glPointSize , glPolygonMode , glPolygonOffset , glPopAttrib , glPopClientAttrib , glPopMatrix , glPushAttrib , glPushClientAttrib , glPushMatrix , glRasterPos2i , glRasterPos3f , glReadBuffer , glRectf , glRenderbufferStorage , glRotatef , glSamplerParameteri , glScalef , glScissor , glShadeModel , glStencilFunc , glStencilMask , glStencilOp , glTexCoord1f , glTexCoord1i , glTexCoord2f , glTexCoord2i , glTexCoord3f , glTexEnvf , glTexEnvi , glTexGeni , glTexImage1D , glTexImage2D , glTexImage3D , glTexParameteri , glTexSubImage2D , glTranslatef , glUniform1f , glUniform1i , glUniform2f , glUniform2i , glUniform3f , glUniform3i , glUniform4f , glUniform4i , glUniformMatrix2fv , glUniformMatrix3fv , glUniformMatrix4fv , glUnmapBuffer , glUseProgram , glValidateProgram , glVertex2f , glVertex2i , glVertex3f , glVertex4f , glVertexAttrib1f , glVertexAttrib2f , glVertexAttrib3f , glVertexAttrib4f , glVertexAttrib4Nub , glVertexAttribPointer , glViewport , zglBufferData , zglBufferSubData , zglClipPlane , zglColor1f , zglColorARGB , zglColorOffset , zglColorPointer3f , zglColorPointer4b , zglColorPointer4f , zglDeleteBuffer , zglDeleteFramebuffer , zglDeleteRenderbuffer , zglDeleteSampler , zglDeleteTexture , zglFogAlphaMode , zglFogColor4f , zglFogDensity , zglFogEnd , zglFogMode , zglFogStart , zglFrustum , zglGenBuffer , zglGenFramebuffer , zglGenRenderbuffer , zglGenSampler , zglGenTexture , zglGetActiveUniform , zglGetFloat , zglGetFramebufferAttachmentParameteri , zglGetInteger , zglGetProgrami , zglGetRenderbufferParameteri , zglGetShaderi , zglInit2D , zglInitOrtho , zglInitPerspective , zglLightAmbient4f , zglLightConstantAttenuation , zglLightDiffuse4f , zglLightLinearAttenuation , zglLightMaterialAmbient4f , zglLightMaterialAmbientAndDiffuse4f , zglLightMaterialDiffuse4f , zglLightMaterialEmission4f , zglLightMaterialShininess , zglLightMaterialSpecular4f , zglLightModelAmbient4f , zglLightModelColorControl , zglLightModelLocalViewer , zglLightModelTwoSide , zglLightPositionf , zglLightQuadraticAttenuation , zglLightSpecular4f , zglLightSpotCutOff , zglLightSpotDirectionf , zglLightSpotExponent , zglLoadExtensions , zglMapBuffer , zglNormalOffset , zglNormalPointer , zglPointParameter3f , zglReadColorPixel , zglReadColorPixelsX , zglReadDepthPixel , zglShaderSource , zglTexCoordOffset , zglTexCoordPointer1f , zglTexCoordPointer2f , zglTexEnvColor4f , zglTexGen4f , zgluLookAt , zglVertexOffset , zglVertexPointer , zglVertexPointer2f 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


 
→ top of page

auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54