Command mapping
List of OpenGL commands corresponding to particular Magnum API.
Note that you can also use the search functionality to find out which OpenGL API corresponds to which Magnum function, class or enum value. Just enter name of an OpenGL function, define or GLSL name into the search box.
Legend:
- not needed — given feature is implemented in a way that makes the function unnecessary
- not queryable, not supported — see Unsupported OpenGL features
- (empty) — given feature is not yet implemented
Functions
A
OpenGL function | Matching API |
---|---|
glActiveShaderProgram() | not needed as glProgramUniform() calls are used |
glActiveTexture() | GL:: |
glAttachShader() | GL:: |
B
C
D
E
OpenGL function | Matching API |
---|---|
glEnable() glEnablei() ,glDisable() , glDisablei() | GL:: GL:: GL:: |
glEnableVertexAttribArray(),glEnableVertexArrayAttrib() ,glDisableVertexAttribArray() ,glDisableVertexArrayAttrib() ,glDisableVertexArrayAttribEXT() | GL:: |
glEvaluateDepthValuesARB() |
F
G
H
OpenGL function | Matching API |
---|---|
glHint() | GL:: |
I
L
OpenGL function | Matching API |
---|---|
glLineWidth() | GL:: |
glLinkProgram() | GL:: |
glLogicOp() | GL:: |
M
O
P
Q
OpenGL function | Matching API |
---|---|
glQueryCounter() | GL:: |
R
OpenGL function | Matching API |
---|---|
glReadBuffer(),glNamedFramebufferReadBuffer() | GL:: GL:: |
glReadPixels(),glReadnPixels() ,glReadnPixelsARB() | GL:: GL:: |
glReleaseShaderCompiler() | |
glRenderbufferStorage(),glNamedRenderbufferStorage() | GL:: |
glRenderbufferStorageMultisample(),glNamedRenderbufferStorageMultisample() | GL:: |
S
T
U
V
OpenGL function | Matching API |
---|---|
glValidateProgram() | GL:: |
glValidateProgramPipeline() | |
glVertexArrayElementBuffer() | GL:: |
glVertexAttrib() | not supported (details) |
glVertexAttribBinding(),glVertexArrayAttribBinding() | GL:: |
glVertexAttribDivisor() | GL:: |
glVertexAttribFormat(),glVertexArrayAttribFormat() | |
glVertexAttribPointer() | GL:: |
glVertexBindingDivisor(),glVertexArrayBindingDivisor() | GL:: |
glViewport() | GL:: GL:: |
glViewportArray() | |
glViewportIndexed() |
W
OpenGL function | Matching API |
---|---|
glWaitSync() |
Limit and state queries
glGet() parameter | Matching API |
---|---|
GL_ACTIVE_TEXTURE ,GL_TEXTURE_BINDING_1D_ARRAY ,GL_TEXTURE_BINDING_1D ,GL_TEXTURE_BINDING_2D_ARRAY ,GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY ,GL_TEXTURE_BINDING_2D_MULTISAMPLE ,GL_TEXTURE_BINDING_2D ,GL_TEXTURE_BINDING_3D ,GL_TEXTURE_BINDING_BUFFER ,GL_TEXTURE_BINDING_BUFFER ,GL_TEXTURE_BINDING_CUBE_MAP ,GL_TEXTURE_BINDING_RECTANGLE | not queryable but tracked internally |
GL_ALIASED_LINE_WIDTH_RANGE | GL:: |
GL_ARRAY_BUFFER_BINDING ,GL_DISPATCH_INDIRECT_BUFFER_BINDING ,GL_ELEMENT_ARRAY_BUFFER_BINDING ,GL_PIXEL_PACK_BUFFER_BINDING ,GL_PIXEL_UNPACK_BUFFER_BINDING | not queryable but tracked internally |
GL_BLEND_COLOR | not queryable, GL:: |
GL_BLEND_DST_ALPHA ,GL_BLEND_DST_RGB ,GL_BLEND_SRC_ALPHA ,GL_BLEND_SRC_RGB | not queryable, GL:: |
GL_BLEND_EQUATION_ALPHA ,GL_BLEND_EQUATION_RGB | not queryable, GL:: |
GL_BLEND ,GL_COLOR_LOGIC_OP ,GL_CULL_FACE ,GL_DEBUG_OUTPUT ,GL_DEBUG_OUTPUT_SYNCHRONOUS ,GL_DEPTH_CLAMP ,GL_DEPTH_TEST ,GL_DITHER ,GL_MULTISAMPLE ,GL_POLYGON_OFFSET_FILL ,GL_POLYGON_OFFSET_LINE ,GL_POLYGON_OFFSET_POINT ,GL_PROGRAM_POINT_SIZE ,GL_SCISSOR ,GL_TEXTURE_CUBE_MAP_SEAMLESS ,GL_STENCIL_TEST | not queryable, GL:: |
GL_COLOR_CLEAR_VALUE ,GL_DEPTH_CLEAR_VALUE ,GL_STENCIL_CLEAR_VALUE | not queryable, GL:: GL:: GL:: |
GL_COLOR_WRITEMASK ,GL_DEPTH_WRITEMASK ,GL_STENCIL_BACK_WRITEMASK ,GL_STENCIL_WRITEMASK | not queryable, GL:: GL:: GL:: |
GL_CONTEXT_FLAGS | GL:: |
GL_CONTEXT_PROFILE_MASK | GL:: |
GL_CURRENT_PROGRAM | not queryable but tracked internally |
GL_DEBUG_GROUP_STACK_DEPTH | |
GL_DEPTH_FUNC | not queryable, GL:: |
GL_DEPTH_RANGE | not queryable |
GL_DOUBLEBUFFER ,GL_STEREO | |
GL_DRAW_BUFFERi ,GL_DRAW_BUFFER ,GL_READ_BUFFER | not queryable, GL:: GL:: GL:: GL:: |
GL_DRAW_FRAMEBUFFER_BINDING ,GL_READ_FRAMEBUFFER_BINDING | not queryable but tracked internally |
GL_FRAGMENT_SHADER_DERIVATIVE_HINT ,GL_LINE_SMOOTH_HINT ,GL_POLYGON_SMOOTH_HINT ,GL_TEXTURE_COMPRESSION_HINT | not queryable |
GL_IMPLEMENTATION_COLOR_READ_FORMAT | GL:: |
GL_IMPLEMENTATION_COLOR_READ_TYPE | GL:: |
GL_LAYER_PROVOKING_VERTEX | |
GL_LINE_SMOOTH ,GL_POLYGON_SMOOTH | not supported (details) |
GL_LINE_WIDTH | not queryable, GL:: |
GL_LOGIC_OP_MODE | not queryable, GL:: |
GL_MAJOR_VERSION ,GL_MINOR_VERSION | GL:: |
GL_MAX_*_ATOMIC_COUNTER_BUFFERS ,GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS | GL:: GL:: |
GL_MAX_*_ATOMIC_COUNTERS ,GL_MAX_COMBINED_ATOMIC_COUNTERS | GL:: GL:: |
GL_MAX_*_IMAGE_UNIFORMS ,GL_MAX_COMBINED_IMAGE_UNIFORMS | GL:: GL:: |
GL_MAX_*_SHADER_STORAGE_BLOCKS ,GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS | GL:: GL:: |
GL_MAX_*_TEXTURE_IMAGE_UNITS ,GL_MAX_TEXTURE_IMAGE_UNITS ,GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS | GL:: GL:: |
GL_MAX_*_UNIFORM_BLOCKS ,GL_MAX_COMBINED_UNIFORM_BLOCKS | GL:: GL:: |
GL_MAX_*_UNIFORM_COMPONENTS ,GL_MAX_VERTEX_UNIFORM_VECTORS ,GL_MAX_FRAGMENT_UNIFORM_VECTORS | GL:: |
GL_MAX_COMBINED_*_UNIFORM_COMPONENTS | GL:: |
GL_MAX_3D_TEXTURE_SIZE ,GL_MAX_ARRAY_TEXTURE_LAYERS ,GL_MAX_CUBE_MAP_TEXTURE_SIZE ,GL_MAX_RECTANGLE_TEXTURE_SIZE ,GL_MAX_TEXTURE_SIZE | GL:: GL:: GL:: GL:: GL:: GL:: GL:: |
GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE | GL:: |
GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS | GL:: |
GL_MAX_CLIP_DISTANCES | GL:: |
GL_MAX_COLOR_ATTACHMENTS | GL:: |
GL_MAX_COLOR_TEXTURE_SAMPLES ,GL_MAX_DEPTH_TEXTURE_SAMPLES ,GL_MAX_INTEGER_SAMPLES | GL:: GL:: GL:: |
GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES | GL:: |
GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES | GL:: |
GL_ | |
GL_ | |
GL_MAX_COMPUTE_SHARED_MEMORY_SIZE | GL:: |
GL_ | |
GL_ | |
GL_MAX_COMPUTE_WORK_GROUP_COUNT | GL:: |
GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS | GL:: |
GL_MAX_COMPUTE_WORK_GROUP_SIZE | GL:: |
GL_MAX_CULL_DISTANCES | GL:: |
GL_MAX_DEBUG_LOGGED_MESSAGES | GL:: |
GL_MAX_DEBUG_MESSAGE_LENGTH | GL:: |
GL_MAX_DEBUG_GROUP_STACK_DEPTH | GL:: |
GL_MAX_DRAW_BUFFERS | GL:: |
GL_MAX_DUAL_SOURCE_DRAW_BUFFERS | GL:: |
GL_MAX_ELEMENT_INDEX | GL:: |
GL_MAX_ELEMENTS_INDICES | GL:: |
GL_MAX_ELEMENTS_VERTICES | GL:: |
GL_MAX_FRAMEBUFFER_HEIGHT | |
GL_MAX_FRAMEBUFFER_LAYERS | |
GL_MAX_FRAMEBUFFER_SAMPLES | |
GL_MAX_FRAMEBUFFER_WIDTH | |
GL_MAX_FRAGMENT_INPUT_COMPONENTS ,GL_MAX_GEOMETRY_INPUT_COMPONENTS ,GL_MAX_GEOMETRY_OUTPUT_COMPONENTS ,GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS ,GL_MAX_TESS_CONTROL_INPUT_COMPONENTS ,GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS ,GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS ,GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS ,GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS ,GL_MAX_VERTEX_OUTPUT_COMPONENTS ,GL_MAX_VARYING_VECTORS | GL:: GL:: GL:: GL:: GL:: GL:: GL:: GL:: GL:: GL:: |
GL_MAX_GEOMETRY_OUTPUT_VERTICES | GL:: |
GL_MAX_GEOMETRY_SHADER_INVOCATIONS | |
GL_MAX_IMAGE_SAMPLES | GL:: |
GL_MAX_IMAGE_UNITS | GL:: |
GL_MAX_LABEL_LENGTH | GL:: |
GL_MAX_PATCH_VERTICES | GL:: |
GL_MAX_RENDERBUFFER_SIZE | GL:: |
GL_MAX_SAMPLE_MASK_WORDS | |
GL_MAX_SERVER_WAIT_TIMEOUT | |
GL_ | |
GL_MAX_SHADER_STORAGE_BLOCK_SIZE | GL:: |
GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS | GL:: |
GL_ | |
GL_ | |
GL_ | |
GL_MAX_TESS_GEN_LEVEL | |
GL_MAX_TESS_PATCH_COMPONENTS | |
GL_MAX_TEXTURE_BUFFER_SIZE | GL:: |
GL_MAX_TEXTURE_LOD_BIAS | GL:: |
GL_MAX_TEXTURE_MAX_ANISOTROPY | GL:: |
GL_MAX_TRANSFORM_FEEDBACK_BUFFERS | GL:: |
GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS | GL:: |
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS | GL:: |
GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS | GL:: |
GL_MAX_UNIFORM_BLOCK_SIZE | GL:: |
GL_MAX_UNIFORM_BUFFER_BINDINGS | GL:: |
GL_MAX_UNIFORM_LOCATIONS | GL:: |
GL_MAX_VERTEX_ATTRIBS | GL:: |
GL_MAX_VERTEX_ATTRIB_STRIDE | GL:: |
GL_MAX_VERTEX_ATTRIB_BINDINGS | |
GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET | |
GL_MAX_VERTEX_STREAMS | GL:: |
GL_MAX_VIEWPORTS | |
GL_MAX_VIEWPORT_DIMS | GL:: |
GL_MIN_FRAGMENT_INTERPOLATION_OFFSET ,GL_MAX_FRAGMENT_INTERPOLATION_OFFSET | |
GL_MIN_MAP_BUFFER_ALIGNMENT | GL:: |
GL_MIN_PROGRAM_TEXEL_OFFSET ,GL_MAX_PROGRAM_TEXEL_OFFSET | GL:: GL:: |
GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET ,GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET | |
GL_MIN_SAMPLE_SHADING_VALUE | |
GL_NUM_EXTENSIONS | GL:: |
GL_NUM_PROGRAM_BINARY_FORMATS ,GL_PROGRAM_BINARY_FORMATS | |
GL_NUM_SHADER_BINARY_FORMATS ,GL_SHADER_BINARY_FORMATS | |
GL_NUM_SPIR_V_EXTENSIONS | |
GL_PACK_ALIGNMENT ,GL_PACK_IMAGE_HEIGHT ,GL_PACK_ROW_LENGTH ,GL_PACK_SKIP_IMAGES ,GL_PACK_SKIP_PIXELS ,GL_PACK_SKIP_ROWS ,GL_PACK_SWAP_BYTES ,GL_UNPACK_ALIGNMENT ,GL_UNPACK_IMAGE_HEIGHT ,GL_UNPACK_ROW_LENGTH ,GL_UNPACK_SKIP_IMAGES ,GL_UNPACK_SKIP_PIXELS ,GL_UNPACK_SKIP_ROWS ,GL_UNPACK_SWAP_BYTES | not queryable, PixelStorage setters only |
GL_POINT_FADE_THRESHOLD_SIZE | |
GL_POINT_SIZE_GRANULARITY ,GL_POINT_SIZE_RANGE | |
GL_POINT_SIZE | not queryable, GL:: |
GL_POLYGON_OFFSET_FACTOR ,GL_POLYGON_OFFSET_UNITS | not queryable, GL:: |
GL_PRIMITIVE_RESTART_INDEX | not queryable |
GL_PROGRAM_PIPELINE_BINDING | not queryable |
GL_PROVOKING_VERTEX | not queryable, GL:: |
GL_RENDERBUFFER_BINDING | not queryable but tracked internally |
GL_SAMPLER_BINDING | not queryable |
GL_SAMPLES | GL:: |
GL_SAMPLE_BUFFERS | |
GL_SAMPLE_COVERAGE_INVERT ,GL_SAMPLE_COVERAGE_VALUE | |
GL_SCISSOR_BOX | not queryable, GL:: |
GL_SHADER_COMPILER | not supported (details) |
GL_SHADER_STORAGE_BUFFER_BINDING ,GL_SHADER_STORAGE_BUFFER_SIZE ,GL_SHADER_STORAGE_BUFFER_START | not queryable |
GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT | GL:: |
GL_SMOOTH_LINE_WIDTH_GRANULARITY , GL_LINE_WIDTH_GRANULARITY ,GL_SMOOTH_LINE_WIDTH_RANGE , GL_LINE_WIDTH_RANGE | not supported (details) |
GL_STENCIL_BACK_FUNC ,GL_STENCIL_BACK_REF ,GL_STENCIL_BACK_VALUE_MASK ,GL_STENCIL_FUNC ,GL_STENCIL_REF ,GL_STENCIL_VALUE_MASK | not queryable, GL:: |
GL_STENCIL_BACK_FAIL ,GL_STENCIL_BACK_PASS_DEPTH_FAIL ,GL_STENCIL_BACK_PASS_DEPTH_PASS ,GL_STENCIL_FAIL ,GL_STENCIL_PASS_DEPTH_FAIL ,GL_STENCIL_PASS_DEPTH_PASS | not queryable, GL:: |
GL_SUBPIXEL_BITS | |
GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT | GL:: |
GL_TIMESTAMP | |
GL_TRANSFORM_FEEDBACK_BUFFER_BINDING ,GL_TRANSFORM_FEEDBACK_BUFFER_SIZE ,GL_TRANSFORM_FEEDBACK_BUFFER_START | not queryable |
GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT | GL:: |
GL_UNIFORM_BUFFER_BINDING ,GL_UNIFORM_BUFFER_SIZE ,GL_UNIFORM_BUFFER_START | not queryable |
GL_VERTEX_BINDING_DIVISOR ,GL_VERTEX_BINDING_OFFSET ,GL_VERTEX_BINDING_STRIDE | not queryable |
GL_VERTEX_PROGRAM_POINT_SIZE | not queryable |
GL_VIEWPORT_BOUNDS_RANGE | |
GL_VIEWPORT_INDEX_PROVOKING_VERTEX | |
GL_VIEWPORT_SUBPIXEL_BITS | |
GL_VIEWPORT | not queryable but tracked in GL:: |