Module GL

OpenGL Constants


See also:

Drawing Primitives

GL

BlendingFactorDest

GL

BlendingFactorSrc

GL

AlphaFunction and DepthFunction

GL

LogicOp

GL

Culling

GL

PolygonMode

GL

Clear Bits

GL

ShadeModel

GL

MatrixMode

GL

Texture Filtering

GL

Texture Clamping

GL

Texture Environment

GL
GL_TEXTURE_FILTER_CONTROL
GL_TEXTURE_LOD_BIAS

Texture Generation

GL

glPushAttrib() bits

GL

glHint() targets

GL

glHint() modes

GL

Light Specification

GL

Shader Types

GL

Geometry Shader Parameters

GL

Tesselation control shader parameters

GL

OpenGL Data Types

GL

OpenGL Buffer Types

GL

FBO Attachments

GL_COLOR_ATTACHMENT0_EXT
GL_COLOR_ATTACHMENT1_EXT
GL_COLOR_ATTACHMENT2_EXT
GL_COLOR_ATTACHMENT3_EXT
GL_COLOR_ATTACHMENT4_EXT
GL_COLOR_ATTACHMENT5_EXT
GL_COLOR_ATTACHMENT6_EXT
GL_COLOR_ATTACHMENT7_EXT
GL_COLOR_ATTACHMENT8_EXT
GL_COLOR_ATTACHMENT9_EXT
GL_COLOR_ATTACHMENT10_EXT
GL_COLOR_ATTACHMENT11_EXT
GL_COLOR_ATTACHMENT12_EXT
GL_COLOR_ATTACHMENT13_EXT
GL_COLOR_ATTACHMENT14_EXT
GL_COLOR_ATTACHMENT15_EXT
GL_DEPTH_ATTACHMENT_EXT
GL_STENCIL_ATTACHMENT_EXT

Not included, but useful texture Formats

GL_RGBA16F_ARB
GL_RGBA32F_ARB
GL_DEPTH_COMPONENT

Not included, but useful RBO Formats

GL_RGB
GL_RGBA
GL_DEPTH_COMPONENT
GL_STENCIL_INDEX

Not included, but useful FBO Targets

GL_FRAMEBUFFER_EXT
GL_READ_FRAMEBUFFER_EXT
GL_DRAW_FRAMEBUFFER_EXT

Not included, but useful FBO Status

GL_FRAMEBUFFER_COMPLETE_EXT
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT
GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT
GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT
GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT
GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT
GL_FRAMEBUFFER_UNSUPPORTED_EXT
GL_FRAMEBUFFER_STATUS_ERROR_EXT

Drawing Primitives

GL

Fields:

  1. POINTS number
  2. LINES number
  3. LINE_LOOP number
  4. LINE_STRIP number
  5. TRIANGLES number
  6. TRIANGLE_STRIP number
  7. TRIANGLE_FAN number
  8. QUADS number
  9. QUAD_STRIP number
  10. POLYGON number
  11. PATCHES number

BlendingFactorDest

GL

Fields:

  1. ZERO number
  2. ONE number
  3. SRC_COLOR number
  4. ONE_MINUS_SRC_COLOR number
  5. SRC_ALPHA number
  6. ONE_MINUS_SRC_ALPHA number
  7. DST_ALPHA number
  8. ONE_MINUS_DST_ALPHA number

BlendingFactorSrc

GL

Fields:

  1. ZERO number
  2. ONE number
  3. SRC_COLOR number
  4. ONE_MINUS_SRC_COLOR number
  5. SRC_ALPHA number
  6. ONE_MINUS_SRC_ALPHA number
  7. DST_ALPHA number
  8. ONE_MINUS_DST_ALPHA number
  9. DST_COLOR number
  10. ONE_MINUS_DST_COLOR number
  11. SRC_ALPHA_SATURATE number
  12. FUNC_ADD number
  13. FUNC_SUBTRACT number
  14. FUNC_REVERSE_SUBTRACT number
  15. MIN number
  16. MAX number

AlphaFunction and DepthFunction

GL

Fields:

  1. NEVER number
  2. LESS number
  3. EQUAL number
  4. LEQUAL number
  5. GREATER number
  6. NOTEQUAL number
  7. GEQUAL number
  8. ALWAYS number

LogicOp

GL

Fields:

  1. CLEAR number
  2. AND number
  3. AND_REVERSE number
  4. COPY number
  5. AND_INVERTED number
  6. NOOP number
  7. XOR number
  8. OR number
  9. NOR number
  10. EQUIV number
  11. INVERT number
  12. OR_REVERSE number
  13. COPY_INVERTED number
  14. OR_INVERTED number
  15. NAND number
  16. SET number

Culling

GL

Fields:

  1. BACK number
  2. FRONT number
  3. FRONT_AND_BACK number

PolygonMode

GL

Fields:

  1. POINT number
  2. LINE number
  3. FILL number

Clear Bits

GL

Fields:

  1. DEPTH_BUFFER_BIT number
  2. ACCUM_BUFFER_BIT number
  3. STENCIL_BUFFER_BIT number
  4. COLOR_BUFFER_BIT number

ShadeModel

GL

Fields:

  1. FLAT number
  2. SMOOTH number

MatrixMode

GL

Fields:

  1. MODELVIEW number
  2. PROJECTION number
  3. TEXTURE number

Texture Filtering

GL

Fields:

  1. NEAREST number
  2. LINEAR number
  3. NEAREST_MIPMAP_NEAREST number
  4. LINEAR_MIPMAP_NEAREST number
  5. NEAREST_MIPMAP_LINEAR number
  6. LINEAR_MIPMAP_LINEAR number

Texture Clamping

GL

Fields:

  1. REPEAT number
  2. MIRRORED_REPEAT number
  3. CLAMP number
  4. CLAMP_TO_EDGE number
  5. CLAMP_TO_BORDER number

Texture Environment

GL

Fields:

  1. TEXTURE_ENV number
  2. TEXTURE_ENV_MODE number
  3. TEXTURE_ENV_COLOR number
  4. MODULATE number
  5. DECAL number
  6. BLEND number
  7. REPLACE number

GL_TEXTURE_FILTER_CONTROL

  1. GL_TEXTURE_FILTER_CONTROL

GL_TEXTURE_LOD_BIAS

  1. GL_TEXTURE_LOD_BIAS

Texture Generation

GL

Fields:

  1. TEXTURE_GEN_MODE number
  2. EYE_PLANE number
  3. OBJECT_PLANE number
  4. EYE_LINEAR number
  5. OBJECT_LINEAR number
  6. SPHERE_MAP number
  7. NORMAL_MAP number
  8. REFLECTION_MAP number
  9. S number
  10. T number
  11. R number
  12. Q number

glPushAttrib() bits

GL

Fields:

  1. CURRENT_BIT number
  2. POINT_BIT number
  3. LINE_BIT number
  4. POLYGON_BIT number
  5. POLYGON_STIPPLE_BIT number
  6. PIXEL_MODE_BIT number
  7. LIGHTING_BIT number
  8. FOG_BIT number
  9. DEPTH_BUFFER_BIT number
  10. ACCUM_BUFFER_BIT number
  11. STENCIL_BUFFER_BIT number
  12. VIEWPORT_BIT number
  13. TRANSFORM_BIT number
  14. ENABLE_BIT number
  15. COLOR_BUFFER_BIT number
  16. HINT_BIT number
  17. EVAL_BIT number
  18. LIST_BIT number
  19. TEXTURE_BIT number
  20. SCISSOR_BIT number
  21. ALL_ATTRIB_BITS number

glHint() targets

GL

Fields:

  1. FOG_HINT number
  2. LINE_SMOOTH_HINT number
  3. POINT_SMOOTH_HINT number
  4. POLYGON_SMOOTH_HINT number
  5. PERSPECTIVE_CORRECTION_HINT number

glHint() modes

GL

Fields:

  1. DONT_CARE number
  2. FASTEST number
  3. NICEST number

Light Specification

GL

Fields:

  1. AMBIENT number
  2. DIFFUSE number
  3. SPECULAR number
  4. POSITION number
  5. SPOT_DIRECTION number
  6. SPOT_EXPONENT number
  7. SPOT_CUTOFF number
  8. CONSTANT_ATTENUATION number
  9. LINEAR_ATTENUATION number
  10. QUADRATIC_ATTENUATION number

Shader Types

GL

Fields:

  1. VERTEX_SHADER number
  2. TESS_CONTROL_SHADER number
  3. TESS_EVALUATION_SHADER number
  4. GEOMETRY_SHADER number
  5. FRAGMENT_SHADER number

Geometry Shader Parameters

GL

Fields:

  1. GEOMETRY_INPUT_TYPE number
  2. GEOMETRY_OUTPUT_TYPE number
  3. GEOMETRY_VERTICES_OUT number

Tesselation control shader parameters

GL

Fields:

  1. PATCH_VERTICES number
  2. PATCH_DEFAULT_OUTER_LEVEL number
  3. PATCH_DEFAULT_INNER_LEVEL number

OpenGL Data Types

GL

Fields:

  1. BYTE number
  2. UNSIGNED_BYTE number
  3. SHORT number
  4. UNSIGNED_SHORT number
  5. INT number
  6. UNSIGNED_INT number
  7. FLOAT number
  8. FLOAT_VEC4 number
  9. INT_VEC4 number
  10. UNSIGNED_INT_VEC4 number
  11. FLOAT_MAT4 number

OpenGL Buffer Types

GL

Fields:

  1. ELEMENT_ARRAY_BUFFER number
  2. ARRAY_BUFFER number
  3. UNIFORM_BUFFER number
  4. SHADER_STORAGE_BUFFER number

FBO Attachments


GL_COLOR_ATTACHMENT0_EXT

  1. GL_COLOR_ATTACHMENT0_EXT 0x8CE0

GL_COLOR_ATTACHMENT1_EXT

  1. GL_COLOR_ATTACHMENT1_EXT 0x8CE1

GL_COLOR_ATTACHMENT2_EXT

  1. GL_COLOR_ATTACHMENT2_EXT 0x8CE2

GL_COLOR_ATTACHMENT3_EXT

  1. GL_COLOR_ATTACHMENT3_EXT 0x8CE3

GL_COLOR_ATTACHMENT4_EXT

  1. GL_COLOR_ATTACHMENT4_EXT 0x8CE4

GL_COLOR_ATTACHMENT5_EXT

  1. GL_COLOR_ATTACHMENT5_EXT 0x8CE5

GL_COLOR_ATTACHMENT6_EXT

  1. GL_COLOR_ATTACHMENT6_EXT 0x8CE6

GL_COLOR_ATTACHMENT7_EXT

  1. GL_COLOR_ATTACHMENT7_EXT 0x8CE7

GL_COLOR_ATTACHMENT8_EXT

  1. GL_COLOR_ATTACHMENT8_EXT 0x8CE8

GL_COLOR_ATTACHMENT9_EXT

  1. GL_COLOR_ATTACHMENT9_EXT 0x8CE9

GL_COLOR_ATTACHMENT10_EXT

  1. GL_COLOR_ATTACHMENT10_EXT 0x8CEA

GL_COLOR_ATTACHMENT11_EXT

  1. GL_COLOR_ATTACHMENT11_EXT 0x8CEB

GL_COLOR_ATTACHMENT12_EXT

  1. GL_COLOR_ATTACHMENT12_EXT 0x8CEC

GL_COLOR_ATTACHMENT13_EXT

  1. GL_COLOR_ATTACHMENT13_EXT 0x8CED

GL_COLOR_ATTACHMENT14_EXT

  1. GL_COLOR_ATTACHMENT14_EXT 0x8CEE

GL_COLOR_ATTACHMENT15_EXT

  1. GL_COLOR_ATTACHMENT15_EXT 0x8CEF

GL_DEPTH_ATTACHMENT_EXT

  1. GL_DEPTH_ATTACHMENT_EXT 0x8D00

GL_STENCIL_ATTACHMENT_EXT

  1. GL_STENCIL_ATTACHMENT_EXT 0x8D20

Not included, but useful texture Formats


GL_RGBA16F_ARB

  1. GL_RGBA16F_ARB 0x881A

GL_RGBA32F_ARB

  1. GL_RGBA32F_ARB 0x8814

GL_DEPTH_COMPONENT

  1. GL_DEPTH_COMPONENT 0x1902

Not included, but useful RBO Formats


GL_RGB

  1. GL_RGB 0x1907

GL_RGBA

  1. GL_RGBA 0x1908

GL_DEPTH_COMPONENT

  1. GL_DEPTH_COMPONENT 0x1902

GL_STENCIL_INDEX

  1. GL_STENCIL_INDEX 0x1901

Not included, but useful FBO Targets


GL_FRAMEBUFFER_EXT

  1. GL_FRAMEBUFFER_EXT 0x8D40

GL_READ_FRAMEBUFFER_EXT

  1. GL_READ_FRAMEBUFFER_EXT 0x8CA8

GL_DRAW_FRAMEBUFFER_EXT

  1. GL_DRAW_FRAMEBUFFER_EXT 0x8CA9

Not included, but useful FBO Status


GL_FRAMEBUFFER_COMPLETE_EXT

  1. GL_FRAMEBUFFER_COMPLETE_EXT 0x8CD5

GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6

GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7

GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8

GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9

GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA

GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB

GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT

  1. GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC

GL_FRAMEBUFFER_UNSUPPORTED_EXT

  1. GL_FRAMEBUFFER_UNSUPPORTED_EXT 0x8CDD

GL_FRAMEBUFFER_STATUS_ERROR_EXT

  1. GL_FRAMEBUFFER_STATUS_ERROR_EXT 0x8CDE