Wrapper for the current OpenGL context operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/context.hpp>


Public Types | |
|
typedef OneOf< GLenum, std::tuple < oglplus::ColorBuffer, oglplus::FramebufferColorAttachment > > | ColorBuffer |
| Color buffer specification type. | |
Static Public Member Functions | |
| static ErrorCode | GetError (void) |
| returns the error code | |
| static void | Enable (Capability capability) |
Enable a capability. | |
| static void | Enable (Functionality functionality, GLuint offset) |
Enable a functionality. | |
| static void | Enable (Capability capability, GLuint index) |
Enable a capability for an indexed target. | |
| static void | Disable (Capability capability) |
Disable a capability. | |
| static void | Disable (Functionality functionality, GLuint offset) |
Disable a functionality. | |
| static void | Disable (Capability capability, GLuint index) |
Disable a capability for an indexed target. | |
| static bool | IsEnabled (Capability capability) |
Checks if a capability is enabled. | |
| static bool | IsEnabled (Functionality functionality, GLuint offset) |
Checks if a functionality is enabled. | |
| static bool | IsEnabled (Capability capability, GLuint index) |
Check if a capability is enabled for indexed target. | |
| static void | Viewport (GLint x, GLint y, GLsizei w, GLsizei h) |
| Sets the extents of the current viewport. | |
| static void | Viewport (GLsizei w, GLsizei h) |
| Sets the size of the current viewport starting at (0,0) | |
| static void | Viewport (GLuint viewport, GLfloat x, GLfloat y, GLfloat width, GLfloat height) |
Sets the extents of the specified viewport. | |
| static void | Viewport (GLuint viewport, const GLfloat *extents) |
Sets the extents of the specified viewport. | |
| static ViewportExtents | Viewport (GLuint viewport) |
Returns the extents of the specified viewport. | |
| static ViewportPosition | ViewportBoundsRange (void) |
| Returns the implementation-dependent viewport bounds range. | |
| static ViewportSize | MaxViewportDims (void) |
| Returns the implementation-dependent maximum viewport dimensions. | |
| static void | DepthRange (GLclampf near_val, GLclampf far_val) |
Sets the near_val / far_val depth range of the default viewport. | |
| static void | DepthRange (GLclampd near_val, GLclampd far_val) |
Sets the near_val / far_val depth range of the default viewport. | |
| static void | DepthRange (GLuint viewport, GLclampd near_val, GLclampd far_val) |
Sets the near_val / far_val depth range of a viewport. | |
| static oglplus::context::DepthRange | DepthRange (GLuint viewport) |
Returns the depth range of the specified viewport. | |
| static GLuint | MaxViewports (void) |
| Returns the number of available viewports. | |
| static void | ViewportArray (GLuint first, GLsizei count, const GLfloat *extents) |
Sets extents of the viewports specified by first and count. | |
| static void | DepthRangeArray (GLuint first, GLsizei count, const GLclampd *v) |
Sets depth ranges of viewports specified by first and count. | |
| static void | DrawBuffer (ColorBuffer buffer) |
| Sets the destination color buffer for draw operations. | |
| template<unsigned N> | |
| static void | DrawBuffers (ColorBuffer(&buffers)[N]) |
| Sets the destination color buffers for draw operations. | |
| static void | ReadBuffer (ColorBuffer buffer) |
| Sets the source color buffer for read operations. | |
| static void | ColorMask (bool r, bool g, bool b, bool a) |
| Sets the color mask. | |
| static void | ColorMask (GLuint buffer, bool r, bool g, bool b, bool a) |
Sets the color mask for a particular buffer. | |
| static void | DepthMask (bool mask) |
Sets the depth mask. | |
| static void | StencilMask (GLuint mask) |
Sets the stencil mask. | |
| static void | StencilMaskSeparate (Face face, GLuint mask) |
| Sets the stencil mask separately for front and back faces. | |
| static oglplus::context::RGBAMask | ColorWriteMask (GLuint buffer=0) |
| Returns the value of color buffer write mask. | |
| static bool | DepthWriteMask (void) |
| Returns the value of depth buffer write mask. | |
| static GLuint | StencilWriteMask (bool backface=false) |
| Returns the value of stencil write mask. | |
| static void | ClearColor (GLclampf r, GLclampf g, GLclampf b, GLclampf a) |
| Sets the clear color. | |
| static void | ClearDepth (GLclampd d) |
| Sets the clear depth. | |
| static void | ClearStencil (GLint s) |
| Sets the clear stencil buffer value. | |
| static ClrBits | Clear (void) |
| Clears buffers specified by calling functions of the returned object. | |
| static void | Clear (Bitfield< oglplus::ClearBit > bits) |
| Clears buffers specified by the bits parameter. | |
| static oglplus::context::RGBAValue | ColorClearValue (void) |
| Returns the color value used for clearing of the color buffer. | |
| static GLfloat | DepthClearValue (void) |
| Returns the depth value used for clearing of the depth buffer. | |
| static GLint | ClearStencilValue (void) |
| Returns the value used for clearing of the stencil buffer. | |
| static void | FrontFace (FaceOrientation orientation) |
| Sets the polygon facing mode. | |
| static void | CullFace (Face mode) |
| Sets the face culling mode. | |
| static Face | CullFaceMode (void) |
| Returns the face culling mode. | |
| static void | PolygonMode (Face face, oglplus::PolygonMode mode) |
| Sets the polygon rasterization mode. | |
| static void | PolygonMode (oglplus::PolygonMode mode) |
| Sets the polygon rasterization mode. | |
| static void | PolygonOffset (GLfloat factor, GLfloat units) |
| Sets the polygon depth offset. | |
| static GLfloat | PolygonOffsetFactor (void) |
| Returns the polygon offset factor. | |
| static GLfloat | PolygonOffsetUnits (void) |
| Returns the polygon offset units. | |
| static void | LineWidth (GLfloat width) |
| Sets the line width. | |
| static GLfloat | LineWidth (void) |
| Returns the line width. | |
| static void | PointSize (GLfloat size) |
| Sets the point size. | |
| static GLfloat | PointSize (void) |
| Returns the point size. | |
| static void | PointFadeThresholdSize (GLfloat size) |
| Sets the point fade threshold size. | |
| static GLfloat | PointFadeThresholdSize (void) |
| Returns the point fade threshold size. | |
| static void | ProvokingVertex (ProvokeMode mode) |
| Sets the provoking vertex selection mode for flatshading. | |
| static ProvokeMode | ProvokingVertex (void) |
| Returns the provoking vertex selection mode for flatshading. | |
| static void | DrawArrays (PrimitiveType primitive, GLint first, GLsizei count) |
| Draws count of primitives from the bound array buffers. | |
| static void | DrawArraysInstancedBaseInstance (PrimitiveType primitive, GLint first, GLsizei count, GLsizei inst_count, GLsizei base_instance) |
| Draws count of primitives from the bound array buffers. | |
| static void | DrawArraysInstanced (PrimitiveType primitive, GLint first, GLsizei count, GLsizei inst_count) |
| Draws count of primitives from the bound array buffers. | |
| static void | DrawArraysIndirect (PrimitiveType primitive, const void *indirect=nullptr) |
| Draws primitives from an indirect buffer. | |
| static void | MultiDrawArrays (PrimitiveType primitive, const GLint *first, const GLsizei *count, GLsizei primcount) |
| Draws primcount ranges of primitives from the bound array buffers. | |
| static void | MultiDrawArraysIndirect (PrimitiveType primitive, GLsizei draw_count, GLsizei stride=0, const void *indirect=nullptr) |
| Draws multiple sets of primitives from an indirect buffer. | |
| static void | DrawElements (PrimitiveType primitive, GLsizei count, DataType data_type) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElements (PrimitiveType primitive, GLsizei count, const T *indices) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawElementsInstanced (PrimitiveType primitive, GLsizei count, DataType data_type, GLsizei instance_count) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElementsInstanced (PrimitiveType primitive, GLsizei count, const T *indices, GLsizei instance_count) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawElementsInstancedBaseInstance (PrimitiveType primitive, GLsizei count, DataType data_type, GLsizei inst_count, GLuint base_instance) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElementsInstancedBaseInstance (PrimitiveType primitive, GLsizei count, const T *indices, GLsizei inst_count, GLuint base_instance) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | MultiDrawElements (PrimitiveType primitive, const GLsizei *count, DataType data_type, GLsizei draw_count) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | MultiDrawElements (PrimitiveType primitive, const GLsizei *count, T *const *indices, GLsizei draw_count) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawRangeElements (PrimitiveType primitive, GLuint start, GLuint end, GLsizei count, DataType data_type) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawRangeElements (PrimitiveType primitive, GLuint start, GLuint end, GLsizei count, const T *indices) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawElementsIndirect (PrimitiveType primitive, DataType data_type, const void *indirect=nullptr) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | MultiDrawElementsIndirect (PrimitiveType primitive, DataType data_type, GLsizei draw_count, GLsizei stride=0, const void *indirect=nullptr) |
| Draws sequences of primitives from the bound element array buffers. | |
| static void | DrawElementsBaseVertex (PrimitiveType primitive, GLsizei count, DataType data_type, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElementsBaseVertex (PrimitiveType primitive, GLsizei count, const T *indices, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawRangeElementsBaseVertex (PrimitiveType primitive, GLuint start, GLuint end, GLsizei count, DataType data_type, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawRangeElementsBaseVertex (PrimitiveType primitive, GLuint start, GLuint end, GLsizei count, const T *indices, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawElementsInstancedBaseVertex (PrimitiveType primitive, GLsizei count, DataType data_type, GLsizei inst_count, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElementsInstancedBaseVertex (PrimitiveType primitive, GLsizei count, const T *indices, GLsizei inst_count, GLint base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | MultiDrawElementsBaseVertex (PrimitiveType primitive, const GLsizei *count, DataType data_type, GLsizei draw_count, const GLint *base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | MultiDrawElementsBaseVertex (PrimitiveType primitive, const GLsizei *count, T *const *indices, GLsizei draw_count, const GLint *base_vertex) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | DrawElementsInstancedBaseVertexBaseInstance (PrimitiveType primitive, GLsizei count, DataType data_type, GLsizei inst_count, GLint base_vertex, GLuint base_instance) |
| Draws a sequence of primitives from the bound element array buffers. | |
| template<typename T > | |
| static std::enable_if < IsGLDataType< T >::value, void >::type | DrawElementsInstancedBaseVertexBaseInstance (PrimitiveType primitive, GLsizei count, const T *indices, GLsizei inst_count, GLint base_vertex, GLuint base_instance) |
| Draws a sequence of primitives from the bound element array buffers. | |
| static void | PrimitiveRestartIndex (GLuint index) |
| Sets the primitive restart index. | |
| static void | DispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) |
| Launches several work groups. | |
| static void | DispatchComputeIndirect (GLintptr indirect) |
| Launches indirectly several work groups. | |
| static void | DepthFunc (CompareFunction function) |
Sets the depth comparison function. | |
| static CompareFunction | DepthFunc (void) |
| Returns the depth comparison function. | |
| static void | StencilFunc (CompareFunction func, GLint ref=GLint(0), GLuint mask=~GLuint(0)) |
| Sets the stencil function. | |
| static CompareFunction | StencilFunc (bool backface=false) |
| Returns the stencil function. | |
| static void | StencilFuncSeparate (Face face, CompareFunction func, GLint ref=GLint(0), GLuint mask=~GLuint(0)) |
| Sets the stencil function separately for front and back faces. | |
| static void | StencilOp (StencilOperation sfail, StencilOperation dfail, StencilOperation dpass) |
| Sets the stencil operation. | |
| static void | StencilOpSeparate (Face face, StencilOperation sfail, StencilOperation dfail, StencilOperation dpass) |
| Sets the stencil operation separately for front and back faces. | |
| static GLuint | StencilValueMask (bool backface=false) |
| Returns the value of stencil mask. | |
| static GLuint | StencilRef (bool backface=false) |
| Returns the stencil reference value. | |
| static StencilOperation | StencilFail (bool backface=false) |
| Returns the stencil-fail action. | |
| static StencilOperation | StencilPassDepthFail (bool backface=false) |
| Returns the stencil-pass depth-fail action. | |
| static StencilOperation | StencilPassDepthPass (bool backface=false) |
| Returns the stencil-pass depth-pass action. | |
| static void | Scissor (GLint left, GLint bottom, GLsizei width, GLsizei height) |
| Defines the scissor rectangle for the first viewport. | |
| static void | Scissor (GLuint viewport, GLint left, GLint bottom, GLsizei width, GLsizei height) |
Defines the scissor rectangle for the specified viewport. | |
| static void | Scissor (GLuint viewport, GLint *v) |
Defines the scissor rectangle for the specified viewport. | |
| static void | ScissorArray (GLuint first, GLsizei count, GLint *v) |
Defines scissor boxes for viewports specified by first count. | |
| static ScissorRectangle | ScissorBox (GLuint viewport) |
Returns the extents of scissor box of the specified viewport. | |
| static void | LogicOp (ColorLogicOperation op) |
| Sets the color logical operation. | |
| static ColorLogicOperation | LogicOpMode (void) |
| Returns the color logical operation. | |
| static void | PixelStore (PixelStorageMode parameter, GLfloat value) |
Sets the value of a pixel storage parameter. | |
| static void | PixelStore (PixelStorageMode parameter, GLint value) |
Sets the value of a pixel storage parameter. | |
| static void | ReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, PixelDataFormat format, PixelDataType type, void *data) |
Sets the value of a pixel storage parameter. | |
| static void | BlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, Bitfield< oglplus::BufferSelectBit > mask, BlitFilter filter) |
| Transfers a rectangle of pixels from the read buffer the draw buffer. | |
| static void | BlendEquation (oglplus::BlendEquation eq) |
| Sets the blend equation. | |
| static void | BlendEquation (GLuint buffer, oglplus::BlendEquation eq) |
Sets the blend equation for a particular draw buffer. | |
| static void | BlendEquationSeparate (oglplus::BlendEquation eq_rgb, oglplus::BlendEquation eq_alpha) |
| Sets the blend equation separate for RGB and alpha. | |
| static void | BlendEquationSeparate (GLuint buffer, oglplus::BlendEquation eq_rgb, oglplus::BlendEquation eq_alpha) |
Sets the blend equation separate for RGB and alpha for a buffer. | |
| static void | BlendFunc (BlendFunction src, BlendFunction dst) |
| Sets the blend function. | |
| static void | BlendFunc (GLuint buffer, BlendFunction src, BlendFunction dst) |
Sets the blend function for a particular buffer. | |
| static void | BlendFuncSeparate (BlendFunction src_rgb, BlendFunction dst_rgb, BlendFunction src_alpha, BlendFunction dst_alpha) |
| Sets the blend function separate for RGB and alpha. | |
| static void | BlendFuncSeparate (GLuint buffer, BlendFunction src_rgb, BlendFunction dst_rgb, BlendFunction src_alpha, BlendFunction dst_alpha) |
Sets the blend function separate for RGB and alpha for a buffer. | |
| static void | BlendColor (GLclampf r, GLclampf g, GLclampf b, GLclampf a) |
| Sets the blend color. | |
| static void | MemoryBarrier (Bitfield< MemoryBarrierBit > bits) |
| Defines a barrier for memory transactions. | |
| static void | Flush (void) |
| Indicate that all previous GL commands must finish in finite time. | |
| static void | Finish (void) |
| Force all previous GL commands to complete before returning. | |
| static void | Hint (HintTarget target, HintOption option) |
Selects a hint option for a target. | |
| static HintOption | Hint (HintTarget target) |
Queries the current hint for a target. | |
| static GLint | IntLimit (LimitQuery query) |
| Gets the implementation-dependent limit value. | |
| static GLint | IntLimit (LimitQuery query, GLuint index) |
| Gets the implementation-dependent indexed limit value. | |
| static GLfloat | FloatLimit (LimitQuery query) |
| Gets the implementation-dependent limit value. | |
| static GLfloat | FloatLimit (LimitQuery query, GLuint index) |
| Gets the implementation-dependent indexed limit value. | |
| static void | RequireAtLeast (LimitQuery limit, GLint value) |
Raises a LimitError if value is greater than the specified limit. | |
| static void | RequireAtLeast (LimitQuery limit, GLuint index, GLint value) |
Raises a LimitError if value is greater than the specified limit. | |
| static const GLubyte * | GetString (StringQuery query) |
| Queries a string describing GL properties. | |
| static GLint | MajorVersion (void) |
| Queries the major version number. | |
| static GLint | MinorVersion (void) |
| Queries the minor version number. | |
| static GLuint | NumExtensions (void) |
| Queries the number of extension strings. | |
| static const GLubyte * | Extensions (GLuint index) |
Returns the name of the index -th extension. | |
Wrapper for the current OpenGL context operations.
| static void oglplus::context::Blending::BlendColor | ( | GLclampf | r, |
| GLclampf | g, | ||
| GLclampf | b, | ||
| GLclampf | a | ||
| ) | [static, inherited] |
| static void oglplus::context::Blending::BlendEquation | ( | oglplus::BlendEquation | eq | ) | [static, inherited] |
| static void oglplus::context::Blending::BlendEquation | ( | GLuint | buffer, |
| oglplus::BlendEquation | eq | ||
| ) | [static, inherited] |
Sets the blend equation for a particular draw buffer.
Requires OpenGL 4.0.
References OGLPLUS_VERIFY.
| static void oglplus::context::Blending::BlendEquationSeparate | ( | oglplus::BlendEquation | eq_rgb, |
| oglplus::BlendEquation | eq_alpha | ||
| ) | [static, inherited] |
Sets the blend equation separate for RGB and alpha.
References OGLPLUS_VERIFY.
| static void oglplus::context::Blending::BlendEquationSeparate | ( | GLuint | buffer, |
| oglplus::BlendEquation | eq_rgb, | ||
| oglplus::BlendEquation | eq_alpha | ||
| ) | [static, inherited] |
Sets the blend equation separate for RGB and alpha for a buffer.
Requires OpenGL 4.0.
References OGLPLUS_VERIFY.
| static void oglplus::context::Blending::BlendFunc | ( | BlendFunction | src, |
| BlendFunction | dst | ||
| ) | [static, inherited] |
| static void oglplus::context::Blending::BlendFunc | ( | GLuint | buffer, |
| BlendFunction | src, | ||
| BlendFunction | dst | ||
| ) | [static, inherited] |
Sets the blend function for a particular buffer.
Requires OpenGL 4.0.
References OGLPLUS_VERIFY.
| static void oglplus::context::Blending::BlendFuncSeparate | ( | BlendFunction | src_rgb, |
| BlendFunction | dst_rgb, | ||
| BlendFunction | src_alpha, | ||
| BlendFunction | dst_alpha | ||
| ) | [static, inherited] |
Sets the blend function separate for RGB and alpha.
References OGLPLUS_VERIFY.
| static void oglplus::context::Blending::BlendFuncSeparate | ( | GLuint | buffer, |
| BlendFunction | src_rgb, | ||
| BlendFunction | dst_rgb, | ||
| BlendFunction | src_alpha, | ||
| BlendFunction | dst_alpha | ||
| ) | [static, inherited] |
Sets the blend function separate for RGB and alpha for a buffer.
Requires OpenGL 4.0.
References OGLPLUS_VERIFY.
| static void oglplus::context::PixelOps::BlitFramebuffer | ( | GLint | srcX0, |
| GLint | srcY0, | ||
| GLint | srcX1, | ||
| GLint | srcY1, | ||
| GLint | dstX0, | ||
| GLint | dstY0, | ||
| GLint | dstX1, | ||
| GLint | dstY1, | ||
| Bitfield< oglplus::BufferSelectBit > | mask, | ||
| BlitFilter | filter | ||
| ) | [static, inherited] |
Transfers a rectangle of pixels from the read buffer the draw buffer.
References OGLPLUS_CHECK.
| static ClrBits oglplus::context::ClearBuffers::Clear | ( | void | ) | [static, inherited] |
Clears buffers specified by calling functions of the returned object.
This function returns an object that allows to specify which buffers to clear by calling its ColorBuffer, DepthBuffer and StencilBuffer member functions.
example:
Context gl; gl.Clear().ColorBuffer(); gl.Clear().ColorBuffer().DepthBuffer(); gl.Clear().StencilBuffer().DepthBuffer(); gl.Clear().ColorBuffer().DepthBuffer().StencilBuffer();
| Error |
Referenced by oglplus::context::ClearBuffers::Clear().
| static void oglplus::context::ClearBuffers::Clear | ( | Bitfield< oglplus::ClearBit > | bits | ) | [static, inherited] |
Clears buffers specified by the bits parameter.
This function clears the specified buffers.
example:
Context gl; gl.Clear(ClearBit::ColorBuffer); gl.Clear(ClearBit::ColorBuffer|ClearBit::DepthBuffer); gl.Clear({ClearBit::ColorBuffer}); gl.Clear({ClearBit::ColorBuffer, ClearBit::DepthBuffer}); gl.Clear({ClearBit::ColorBuffer, ClearBit::StencilBuffer});
| Error |
References oglplus::context::ClearBuffers::Clear(), and OGLPLUS_VERIFY.
| static void oglplus::context::ClearBuffers::ClearColor | ( | GLclampf | r, |
| GLclampf | g, | ||
| GLclampf | b, | ||
| GLclampf | a | ||
| ) | [static, inherited] |
Sets the clear color.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::ClearBuffers::ClearDepth | ( | GLclampd | d | ) | [static, inherited] |
Sets the clear depth.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::ClearBuffers::ClearStencil | ( | GLint | s | ) | [static, inherited] |
Sets the clear stencil buffer value.
| Error |
References OGLPLUS_VERIFY.
| static GLint oglplus::context::ClearBuffers::ClearStencilValue | ( | void | ) | [static, inherited] |
Returns the value used for clearing of the stencil buffer.
| Error |
GL_STENCIL_CLEAR_VALUE References OGLPLUS_VERIFY.
| static oglplus::context::RGBAValue oglplus::context::ClearBuffers::ColorClearValue | ( | void | ) | [static, inherited] |
Returns the color value used for clearing of the color buffer.
| Error |
GL_COLOR_CLEAR_VALUE References OGLPLUS_VERIFY.
| static void oglplus::context::BufferMasking::ColorMask | ( | bool | r, |
| bool | g, | ||
| bool | b, | ||
| bool | a | ||
| ) | [static, inherited] |
| static void oglplus::context::BufferMasking::ColorMask | ( | GLuint | buffer, |
| bool | r, | ||
| bool | g, | ||
| bool | b, | ||
| bool | a | ||
| ) | [static, inherited] |
Sets the color mask for a particular buffer.
References OGLPLUS_VERIFY.
| static oglplus::context::RGBAMask oglplus::context::BufferMasking::ColorWriteMask | ( | GLuint | buffer = 0 | ) | [static, inherited] |
Returns the value of color buffer write mask.
GL_COLOR_WRITEMASK References OGLPLUS_CHECK.
| static void oglplus::context::Rasterization::CullFace | ( | Face | mode | ) | [static, inherited] |
| static Face oglplus::context::Rasterization::CullFaceMode | ( | void | ) | [static, inherited] |
Returns the face culling mode.
GL_CULL_FACE_MODE References OGLPLUS_VERIFY.
| static GLfloat oglplus::context::ClearBuffers::DepthClearValue | ( | void | ) | [static, inherited] |
Returns the depth value used for clearing of the depth buffer.
| Error |
GL_DEPTH_CLEAR_VALUE References OGLPLUS_VERIFY.
| static void oglplus::context::DepthTest::DepthFunc | ( | CompareFunction | function | ) | [static, inherited] |
Sets the depth comparison function.
References oglplus::context::DepthTest::DepthFunc(), and OGLPLUS_VERIFY.
| static CompareFunction oglplus::context::DepthTest::DepthFunc | ( | void | ) | [static, inherited] |
Returns the depth comparison function.
GL_DEPTH_FUNC References OGLPLUS_VERIFY.
Referenced by oglplus::context::DepthTest::DepthFunc().
| static void oglplus::context::BufferMasking::DepthMask | ( | bool | mask | ) | [static, inherited] |
| static void oglplus::context::ViewportOps::DepthRange | ( | GLclampf | near_val, |
| GLclampf | far_val | ||
| ) | [static, inherited] |
Sets the near_val / far_val depth range of the default viewport.
| Error |
References OGLPLUS_CHECK.
| static void oglplus::context::ViewportOps::DepthRange | ( | GLclampd | near_val, |
| GLclampd | far_val | ||
| ) | [static, inherited] |
Sets the near_val / far_val depth range of the default viewport.
| Error |
References OGLPLUS_CHECK.
| static void oglplus::context::ViewportOps::DepthRange | ( | GLuint | viewport, |
| GLclampd | near_val, | ||
| GLclampd | far_val | ||
| ) | [static, inherited] |
Sets the near_val / far_val depth range of a viewport.
| Error |
References OGLPLUS_CHECK.
| static oglplus::context::DepthRange oglplus::context::ViewportOps::DepthRange | ( | GLuint | viewport | ) | [static, inherited] |
Returns the depth range of the specified viewport.
| Error |
GL_DEPTH_RANGE References OGLPLUS_CHECK.
| static void oglplus::context::ViewportOps::DepthRangeArray | ( | GLuint | first, |
| GLsizei | count, | ||
| const GLclampd * | v | ||
| ) | [static, inherited] |
Sets depth ranges of viewports specified by first and count.
| Error |
References OGLPLUS_CHECK.
| static bool oglplus::context::BufferMasking::DepthWriteMask | ( | void | ) | [static, inherited] |
Returns the value of depth buffer write mask.
GL_DEPTH_WRITEMASK References OGLPLUS_VERIFY.
| static void oglplus::context::Capabilities::Disable | ( | Capability | capability | ) | [static, inherited] |
Disable a capability.
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Capabilities::Disable().
| static void oglplus::context::Capabilities::Disable | ( | Functionality | functionality, |
| GLuint | offset | ||
| ) | [static, inherited] |
Disable a functionality.
References oglplus::context::Capabilities::Disable(), and OGLPLUS_VERIFY.
| static void oglplus::context::Capabilities::Disable | ( | Capability | capability, |
| GLuint | index | ||
| ) | [static, inherited] |
Disable a capability for an indexed target.
References OGLPLUS_VERIFY.
| static void oglplus::context::Computing::DispatchCompute | ( | GLuint | num_groups_x, |
| GLuint | num_groups_y, | ||
| GLuint | num_groups_z | ||
| ) | [static, inherited] |
| static void oglplus::context::Computing::DispatchComputeIndirect | ( | GLintptr | indirect | ) | [static, inherited] |
Launches indirectly several work groups.
References OGLPLUS_CHECK.
| static void oglplus::context::Drawing::DrawArrays | ( | PrimitiveType | primitive, |
| GLint | first, | ||
| GLsizei | count | ||
| ) | [static, inherited] |
Draws count of primitives from the bound array buffers.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawArraysIndirect | ( | PrimitiveType | primitive, |
| const void * | indirect = nullptr |
||
| ) | [static, inherited] |
Draws primitives from an indirect buffer.
| Error | Requires OpenGL 4.0 or the GL_ARB_draw_indirect extension. |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawArraysInstanced | ( | PrimitiveType | primitive, |
| GLint | first, | ||
| GLsizei | count, | ||
| GLsizei | inst_count | ||
| ) | [static, inherited] |
Draws count of primitives from the bound array buffers.
| Error | Requires OpenGL 3.1. |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawArraysInstancedBaseInstance | ( | PrimitiveType | primitive, |
| GLint | first, | ||
| GLsizei | count, | ||
| GLsizei | inst_count, | ||
| GLsizei | base_instance | ||
| ) | [static, inherited] |
Draws count of primitives from the bound array buffers.
| Error | Requires OpenGL 4.2. |
References OGLPLUS_VERIFY.
| static void oglplus::context::BufferSelection::DrawBuffer | ( | ColorBuffer | buffer | ) | [static, inherited] |
Sets the destination color buffer for draw operations.
References OGLPLUS_VERIFY.
| static void oglplus::context::BufferSelection::DrawBuffers | ( | ColorBuffer(&) | buffers[N] | ) | [static, inherited] |
Sets the destination color buffers for draw operations.
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElements | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElements().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElements | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References oglplus::context::Drawing::DrawElements(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsBaseVertex | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElementsBaseVertex().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElementsBaseVertex | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References oglplus::context::Drawing::DrawElementsBaseVertex(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsIndirect | ( | PrimitiveType | primitive, |
| DataType | data_type, | ||
| const void * | indirect = nullptr |
||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.0 or the GL_ARB_GL_ARB_draw_indirect extension. |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsInstanced | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLsizei | instance_count | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElementsInstanced().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElementsInstanced | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices, | ||
| GLsizei | instance_count | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References oglplus::context::Drawing::DrawElementsInstanced(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsInstancedBaseInstance | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLsizei | inst_count, | ||
| GLuint | base_instance | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.2. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElementsInstancedBaseInstance().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElementsInstancedBaseInstance | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices, | ||
| GLsizei | inst_count, | ||
| GLuint | base_instance | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.2. |
References oglplus::context::Drawing::DrawElementsInstancedBaseInstance(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsInstancedBaseVertex | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLsizei | inst_count, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElementsInstancedBaseVertex().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElementsInstancedBaseVertex | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices, | ||
| GLsizei | inst_count, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References oglplus::context::Drawing::DrawElementsInstancedBaseVertex(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawElementsInstancedBaseVertexBaseInstance | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLsizei | inst_count, | ||
| GLint | base_vertex, | ||
| GLuint | base_instance | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.2. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawElementsInstancedBaseVertexBaseInstance().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawElementsInstancedBaseVertexBaseInstance | ( | PrimitiveType | primitive, |
| GLsizei | count, | ||
| const T * | indices, | ||
| GLsizei | inst_count, | ||
| GLint | base_vertex, | ||
| GLuint | base_instance | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.2. |
References oglplus::context::Drawing::DrawElementsInstancedBaseVertexBaseInstance(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawRangeElements | ( | PrimitiveType | primitive, |
| GLuint | start, | ||
| GLuint | end, | ||
| GLsizei | count, | ||
| DataType | data_type | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawRangeElements().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawRangeElements | ( | PrimitiveType | primitive, |
| GLuint | start, | ||
| GLuint | end, | ||
| GLsizei | count, | ||
| const T * | indices | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References oglplus::context::Drawing::DrawRangeElements(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::DrawRangeElementsBaseVertex | ( | PrimitiveType | primitive, |
| GLuint | start, | ||
| GLuint | end, | ||
| GLsizei | count, | ||
| DataType | data_type, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::DrawRangeElementsBaseVertex().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::DrawRangeElementsBaseVertex | ( | PrimitiveType | primitive, |
| GLuint | start, | ||
| GLuint | end, | ||
| GLsizei | count, | ||
| const T * | indices, | ||
| GLint | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References oglplus::context::Drawing::DrawRangeElementsBaseVertex(), and OGLPLUS_VERIFY.
| static void oglplus::context::Capabilities::Enable | ( | Capability | capability | ) | [static, inherited] |
Enable a capability.
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Capabilities::Enable().
| static void oglplus::context::Capabilities::Enable | ( | Functionality | functionality, |
| GLuint | offset | ||
| ) | [static, inherited] |
Enable a functionality.
References oglplus::context::Capabilities::Enable(), and OGLPLUS_VERIFY.
| static void oglplus::context::Capabilities::Enable | ( | Capability | capability, |
| GLuint | index | ||
| ) | [static, inherited] |
Enable a capability for an indexed target.
References OGLPLUS_VERIFY.
| static const GLubyte* oglplus::context::StringQueries::Extensions | ( | GLuint | index | ) | [static, inherited] |
Returns the name of the index -th extension.
| Error |
GL_EXTENSIONS References OGLPLUS_VERIFY.
| static GLfloat oglplus::context::LimitQueries::FloatLimit | ( | LimitQuery | query | ) | [static, inherited] |
Gets the implementation-dependent limit value.
References OGLPLUS_VERIFY.
| static GLfloat oglplus::context::LimitQueries::FloatLimit | ( | LimitQuery | query, |
| GLuint | index | ||
| ) | [static, inherited] |
Gets the implementation-dependent indexed limit value.
References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::FrontFace | ( | FaceOrientation | orientation | ) | [static, inherited] |
| static ErrorCode oglplus::context::Errors::GetError | ( | void | ) | [static, inherited] |
returns the error code
| static const GLubyte* oglplus::context::StringQueries::GetString | ( | StringQuery | query | ) | [static, inherited] |
Queries a string describing GL properties.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::Hints::Hint | ( | HintTarget | target, |
| HintOption | option | ||
| ) | [static, inherited] |
Selects a hint option for a target.
| Error |
References OGLPLUS_VERIFY.
| static HintOption oglplus::context::Hints::Hint | ( | HintTarget | target | ) | [static, inherited] |
Queries the current hint for a target.
| Error |
References OGLPLUS_VERIFY.
| static GLint oglplus::context::LimitQueries::IntLimit | ( | LimitQuery | query | ) | [static, inherited] |
Gets the implementation-dependent limit value.
References OGLPLUS_VERIFY.
Referenced by oglplus::context::LimitQueries::RequireAtLeast().
| static GLint oglplus::context::LimitQueries::IntLimit | ( | LimitQuery | query, |
| GLuint | index | ||
| ) | [static, inherited] |
Gets the implementation-dependent indexed limit value.
References OGLPLUS_VERIFY.
| static bool oglplus::context::Capabilities::IsEnabled | ( | Capability | capability | ) | [static, inherited] |
Checks if a capability is enabled.
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Capabilities::IsEnabled().
| static bool oglplus::context::Capabilities::IsEnabled | ( | Functionality | functionality, |
| GLuint | offset | ||
| ) | [static, inherited] |
Checks if a functionality is enabled.
References oglplus::context::Capabilities::IsEnabled(), and OGLPLUS_VERIFY.
| static bool oglplus::context::Capabilities::IsEnabled | ( | Capability | capability, |
| GLuint | index | ||
| ) | [static, inherited] |
Check if a capability is enabled for indexed target.
References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::LineWidth | ( | GLfloat | width | ) | [static, inherited] |
Sets the line width.
References oglplus::context::Rasterization::LineWidth(), and OGLPLUS_VERIFY.
| static GLfloat oglplus::context::Rasterization::LineWidth | ( | void | ) | [static, inherited] |
Returns the line width.
GL_LINE_WIDTH References OGLPLUS_VERIFY.
Referenced by oglplus::context::Rasterization::LineWidth().
| static void oglplus::context::LogicalOps::LogicOp | ( | ColorLogicOperation | op | ) | [static, inherited] |
| static ColorLogicOperation oglplus::context::LogicalOps::LogicOpMode | ( | void | ) | [static, inherited] |
Returns the color logical operation.
GL_COLOR_LOGIC_OP References OGLPLUS_VERIFY.
| static GLint oglplus::context::StringQueries::MajorVersion | ( | void | ) | [static, inherited] |
Queries the major version number.
| Error |
GL_MAJOR_VERSION References OGLPLUS_VERIFY.
| static ViewportSize oglplus::context::ViewportOps::MaxViewportDims | ( | void | ) | [static, inherited] |
Returns the implementation-dependent maximum viewport dimensions.
| Error |
GL_MAX_VIEWPORT_DIMS References OGLPLUS_VERIFY.
| static GLuint oglplus::context::ViewportOps::MaxViewports | ( | void | ) | [static, inherited] |
Returns the number of available viewports.
| Error |
GL_MAX_VIEWPORTS References OGLPLUS_VERIFY.
| static void oglplus::context::Synchronization::MemoryBarrier | ( | Bitfield< MemoryBarrierBit > | bits | ) | [static, inherited] |
Defines a barrier for memory transactions.
example:
Context gl;
gl.MemoryBarrier({MemoryBarrierBit::VertexAttribArray});
gl.MemoryBarrier({
MemoryBarrierBit::ElementArray,
MemoryBarrierBit::Uniform
});
gl.MemoryBarrier({
MemoryBarrierBit::TextureFetch,
MemoryBarrierBit::TextureUpdate
});
| Error | Requires OpenGL 4.2 or the GL_ARB_shader_image_load_store extension. |
References OGLPLUS_VERIFY.
| static GLint oglplus::context::StringQueries::MinorVersion | ( | void | ) | [static, inherited] |
Queries the minor version number.
| Error |
GL_MINOR_VERSION References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::MultiDrawArrays | ( | PrimitiveType | primitive, |
| const GLint * | first, | ||
| const GLsizei * | count, | ||
| GLsizei | primcount | ||
| ) | [static, inherited] |
Draws primcount ranges of primitives from the bound array buffers.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::MultiDrawArraysIndirect | ( | PrimitiveType | primitive, |
| GLsizei | draw_count, | ||
| GLsizei | stride = 0, |
||
| const void * | indirect = nullptr |
||
| ) | [static, inherited] |
Draws multiple sets of primitives from an indirect buffer.
| Error | Requires OpenGL 4.3 or the GL_ARB_multi_draw_indirect extension. |
References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::MultiDrawElements | ( | PrimitiveType | primitive, |
| const GLsizei * | count, | ||
| DataType | data_type, | ||
| GLsizei | draw_count | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::MultiDrawElements().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::MultiDrawElements | ( | PrimitiveType | primitive, |
| const GLsizei * | count, | ||
| T *const * | indices, | ||
| GLsizei | draw_count | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error |
References oglplus::context::Drawing::MultiDrawElements(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::MultiDrawElementsBaseVertex | ( | PrimitiveType | primitive, |
| const GLsizei * | count, | ||
| DataType | data_type, | ||
| GLsizei | draw_count, | ||
| const GLint * | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References OGLPLUS_VERIFY.
Referenced by oglplus::context::Drawing::MultiDrawElementsBaseVertex().
| static std::enable_if<IsGLDataType<T>::value, void>::type oglplus::context::Drawing::MultiDrawElementsBaseVertex | ( | PrimitiveType | primitive, |
| const GLsizei * | count, | ||
| T *const * | indices, | ||
| GLsizei | draw_count, | ||
| const GLint * | base_vertex | ||
| ) | [static, inherited] |
Draws a sequence of primitives from the bound element array buffers.
| Error | Requires OpenGL 3.2 or the GL_ARB_draw_elements_base_vertex extension. |
References oglplus::context::Drawing::MultiDrawElementsBaseVertex(), and OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::MultiDrawElementsIndirect | ( | PrimitiveType | primitive, |
| DataType | data_type, | ||
| GLsizei | draw_count, | ||
| GLsizei | stride = 0, |
||
| const void * | indirect = nullptr |
||
| ) | [static, inherited] |
Draws sequences of primitives from the bound element array buffers.
| Error | Requires OpenGL 4.3. |
References OGLPLUS_VERIFY.
| static GLuint oglplus::context::StringQueries::NumExtensions | ( | void | ) | [static, inherited] |
Queries the number of extension strings.
| Error |
GL_NUM_EXTENSIONS References OGLPLUS_VERIFY.
| static void oglplus::context::PixelOps::PixelStore | ( | PixelStorageMode | parameter, |
| GLfloat | value | ||
| ) | [static, inherited] |
Sets the value of a pixel storage parameter.
References OGLPLUS_CHECK.
| static void oglplus::context::PixelOps::PixelStore | ( | PixelStorageMode | parameter, |
| GLint | value | ||
| ) | [static, inherited] |
Sets the value of a pixel storage parameter.
References OGLPLUS_CHECK.
| static void oglplus::context::Rasterization::PointFadeThresholdSize | ( | GLfloat | size | ) | [static, inherited] |
Sets the point fade threshold size.
GL_POINT_FADE_THRESHOLD_SIZE References OGLPLUS_VERIFY.
| static GLfloat oglplus::context::Rasterization::PointFadeThresholdSize | ( | void | ) | [static, inherited] |
Returns the point fade threshold size.
GL_POINT_FADE_THRESHOLD_SIZE References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::PointSize | ( | GLfloat | size | ) | [static, inherited] |
Sets the point size.
References OGLPLUS_VERIFY, and oglplus::context::Rasterization::PointSize().
| static GLfloat oglplus::context::Rasterization::PointSize | ( | void | ) | [static, inherited] |
Returns the point size.
GL_POINT_SIZE References OGLPLUS_VERIFY.
Referenced by oglplus::context::Rasterization::PointSize().
| static void oglplus::context::Rasterization::PolygonMode | ( | Face | face, |
| oglplus::PolygonMode | mode | ||
| ) | [static, inherited] |
Sets the polygon rasterization mode.
References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::PolygonMode | ( | oglplus::PolygonMode | mode | ) | [static, inherited] |
Sets the polygon rasterization mode.
References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::PolygonOffset | ( | GLfloat | factor, |
| GLfloat | units | ||
| ) | [static, inherited] |
| static GLfloat oglplus::context::Rasterization::PolygonOffsetFactor | ( | void | ) | [static, inherited] |
Returns the polygon offset factor.
GL_POLYGON_OFFSET_FACTOR References OGLPLUS_VERIFY.
| static GLfloat oglplus::context::Rasterization::PolygonOffsetUnits | ( | void | ) | [static, inherited] |
Returns the polygon offset units.
GL_POLYGON_OFFSET_UNITS References OGLPLUS_VERIFY.
| static void oglplus::context::Drawing::PrimitiveRestartIndex | ( | GLuint | index | ) | [static, inherited] |
Sets the primitive restart index.
| Error | Requires OpenGL 3.1. |
References OGLPLUS_VERIFY.
| static void oglplus::context::Rasterization::ProvokingVertex | ( | ProvokeMode | mode | ) | [static, inherited] |
Sets the provoking vertex selection mode for flatshading.
Requires OpenGL 3.2 or the GL_ARB_provoking_vertex extension.
References OGLPLUS_VERIFY, and oglplus::context::Rasterization::ProvokingVertex().
| static ProvokeMode oglplus::context::Rasterization::ProvokingVertex | ( | void | ) | [static, inherited] |
Returns the provoking vertex selection mode for flatshading.
Requires OpenGL 3.2 or the GL_ARB_provoking_vertex extension.
GL_PROVOKING_VERTEX References OGLPLUS_VERIFY.
Referenced by oglplus::context::Rasterization::ProvokingVertex().
| static void oglplus::context::BufferSelection::ReadBuffer | ( | ColorBuffer | buffer | ) | [static, inherited] |
Sets the source color buffer for read operations.
References OGLPLUS_VERIFY.
| static void oglplus::context::PixelOps::ReadPixels | ( | GLint | x, |
| GLint | y, | ||
| GLsizei | width, | ||
| GLsizei | height, | ||
| PixelDataFormat | format, | ||
| PixelDataType | type, | ||
| void * | data | ||
| ) | [static, inherited] |
Sets the value of a pixel storage parameter.
References OGLPLUS_CHECK.
| static void oglplus::context::LimitQueries::RequireAtLeast | ( | LimitQuery | limit, |
| GLint | value | ||
| ) | [static, inherited] |
Raises a LimitError if value is greater than the specified limit.
| LimitError |
References oglplus::context::LimitQueries::IntLimit().
| static void oglplus::context::LimitQueries::RequireAtLeast | ( | LimitQuery | limit, |
| GLuint | index, | ||
| GLint | value | ||
| ) | [static, inherited] |
Raises a LimitError if value is greater than the specified limit.
| LimitError |
References oglplus::context::LimitQueries::IntLimit().
| static void oglplus::context::ScissorTest::Scissor | ( | GLint | left, |
| GLint | bottom, | ||
| GLsizei | width, | ||
| GLsizei | height | ||
| ) | [static, inherited] |
Defines the scissor rectangle for the first viewport.
| Error |
References OGLPLUS_VERIFY.
| static void oglplus::context::ScissorTest::Scissor | ( | GLuint | viewport, |
| GLint | left, | ||
| GLint | bottom, | ||
| GLsizei | width, | ||
| GLsizei | height | ||
| ) | [static, inherited] |
Defines the scissor rectangle for the specified viewport.
| Error | Requires OpenGL 4.1 or the GL_ARB_viewport_array extension. |
References OGLPLUS_CHECK.
| static void oglplus::context::ScissorTest::Scissor | ( | GLuint | viewport, |
| GLint * | v | ||
| ) | [static, inherited] |
Defines the scissor rectangle for the specified viewport.
Requires OpenGL 4.1 or the GL_ARB_viewport_array extension.
References OGLPLUS_CHECK.
| static void oglplus::context::ScissorTest::ScissorArray | ( | GLuint | first, |
| GLsizei | count, | ||
| GLint * | v | ||
| ) | [static, inherited] |
Defines scissor boxes for viewports specified by first count.
| Error | Requires OpenGL 4.1 or the GL_ARB_viewport_array extension. |
References OGLPLUS_CHECK.
| static ScissorRectangle oglplus::context::ScissorTest::ScissorBox | ( | GLuint | viewport | ) | [static, inherited] |
Returns the extents of scissor box of the specified viewport.
| Error | Requires OpenGL 4.1 or the GL_ARB_viewport_array extension. |
GL_SCISSOR_BOX References OGLPLUS_CHECK.
| static StencilOperation oglplus::context::StencilTest::StencilFail | ( | bool | backface = false | ) | [static, inherited] |
Returns the stencil-fail action.
GL_STENCIL_FAIL GL_STENCIL_BACK_FAIL References OGLPLUS_VERIFY.
| static void oglplus::context::StencilTest::StencilFunc | ( | CompareFunction | func, |
| GLint | ref = GLint(0), |
||
| GLuint | mask = ~GLuint(0) |
||
| ) | [static, inherited] |
| static CompareFunction oglplus::context::StencilTest::StencilFunc | ( | bool | backface = false | ) | [static, inherited] |
Returns the stencil function.
GL_STENCIL_FUNC GL_STENCIL_BACK_FUNC References OGLPLUS_VERIFY.
| static void oglplus::context::StencilTest::StencilFuncSeparate | ( | Face | face, |
| CompareFunction | func, | ||
| GLint | ref = GLint(0), |
||
| GLuint | mask = ~GLuint(0) |
||
| ) | [static, inherited] |
Sets the stencil function separately for front and back faces.
References OGLPLUS_VERIFY.
| static void oglplus::context::BufferMasking::StencilMask | ( | GLuint | mask | ) | [static, inherited] |
| static void oglplus::context::BufferMasking::StencilMaskSeparate | ( | Face | face, |
| GLuint | mask | ||
| ) | [static, inherited] |
Sets the stencil mask separately for front and back faces.
References OGLPLUS_VERIFY.
| static void oglplus::context::StencilTest::StencilOp | ( | StencilOperation | sfail, |
| StencilOperation | dfail, | ||
| StencilOperation | dpass | ||
| ) | [static, inherited] |
| static void oglplus::context::StencilTest::StencilOpSeparate | ( | Face | face, |
| StencilOperation | sfail, | ||
| StencilOperation | dfail, | ||
| StencilOperation | dpass | ||
| ) | [static, inherited] |
Sets the stencil operation separately for front and back faces.
References OGLPLUS_VERIFY.
| static StencilOperation oglplus::context::StencilTest::StencilPassDepthFail | ( | bool | backface = false | ) | [static, inherited] |
Returns the stencil-pass depth-fail action.
GL_STENCIL_PASS_DEPTH_FAIL GL_STENCIL_BACK_PASS_DEPTH_FAIL References OGLPLUS_VERIFY.
| static StencilOperation oglplus::context::StencilTest::StencilPassDepthPass | ( | bool | backface = false | ) | [static, inherited] |
Returns the stencil-pass depth-pass action.
GL_STENCIL_PASS_DEPTH_PASS GL_STENCIL_BACK_PASS_DEPTH_PASS References OGLPLUS_VERIFY.
| static GLuint oglplus::context::StencilTest::StencilRef | ( | bool | backface = false | ) | [static, inherited] |
Returns the stencil reference value.
GL_STENCIL_REF GL_STENCIL_BACK_REF References OGLPLUS_VERIFY.
| static GLuint oglplus::context::StencilTest::StencilValueMask | ( | bool | backface = false | ) | [static, inherited] |
Returns the value of stencil mask.
GL_STENCIL_VALUE_MASK GL_STENCIL_BACK_VALUE_MASK References OGLPLUS_VERIFY.
| static GLuint oglplus::context::BufferMasking::StencilWriteMask | ( | bool | backface = false | ) | [static, inherited] |
Returns the value of stencil write mask.
GL_STENCIL_WRITEMASK GL_STENCIL_BACK_WRITEMASK References OGLPLUS_VERIFY.
| static void oglplus::context::ViewportOps::Viewport | ( | GLint | x, |
| GLint | y, | ||
| GLsizei | w, | ||
| GLsizei | h | ||
| ) | [static, inherited] |
Sets the extents of the current viewport.
| Error |
References OGLPLUS_CHECK.
Referenced by oglplus::context::ViewportOps::Viewport().
| static void oglplus::context::ViewportOps::Viewport | ( | GLsizei | w, |
| GLsizei | h | ||
| ) | [static, inherited] |
Sets the size of the current viewport starting at (0,0)
| Error |
References OGLPLUS_CHECK, and oglplus::context::ViewportOps::Viewport().
| static void oglplus::context::ViewportOps::Viewport | ( | GLuint | viewport, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | width, | ||
| GLfloat | height | ||
| ) | [static, inherited] |
Sets the extents of the specified viewport.
| Error |
References OGLPLUS_CHECK.
| static void oglplus::context::ViewportOps::Viewport | ( | GLuint | viewport, |
| const GLfloat * | extents | ||
| ) | [static, inherited] |
Sets the extents of the specified viewport.
| Error |
References OGLPLUS_CHECK.
| static ViewportExtents oglplus::context::ViewportOps::Viewport | ( | GLuint | viewport | ) | [static, inherited] |
Returns the extents of the specified viewport.
| Error |
GL_VIEWPORT References OGLPLUS_CHECK.
| static void oglplus::context::ViewportOps::ViewportArray | ( | GLuint | first, |
| GLsizei | count, | ||
| const GLfloat * | extents | ||
| ) | [static, inherited] |
Sets extents of the viewports specified by first and count.
| Error |
References OGLPLUS_CHECK.
| static ViewportPosition oglplus::context::ViewportOps::ViewportBoundsRange | ( | void | ) | [static, inherited] |
Returns the implementation-dependent viewport bounds range.
| Error |
GL_VIEWPORT_BOUNDS_RANGE References OGLPLUS_VERIFY.