GLSL-Compute Refine Context. More...
#include <glslComputeContext.h>
Public Member Functions | |
virtual | ~GLSLComputeContext () |
Destructor. More... | |
bool | HasVertexStencilTables () const |
Returns true if the Context has a 'vertex' interpolation stencil table. More... | |
bool | HasVaryingStencilTables () const |
Returns true if the Context has a 'varying' interpolation stencil table. More... | |
int | GetNumControlVertices () const |
Returns the number of control vertices. More... | |
GLuint | GetVertexStencilTablesSizes () const |
Returns the Cuda buffer containing vertex-stencil stencil sizes. More... | |
GLuint | GetVertexStencilTablesOffsets () const |
Returns the Cuda buffer containing vertex-stencil stencil offsets. More... | |
void | BindVertexStencilTables () const |
Binds GL buffers containing stencils for 'vertex' interpolation. More... | |
void | BindVaryingStencilTables () const |
Binds GL buffers containing stencils for 'varying' interpolation. More... | |
void | UnbindStencilTables () const |
Unbinds GL stencil buffers. More... | |
Static Public Member Functions | |
static GLSLComputeContext * | Create (Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0) |
Protected Member Functions | |
GLSLComputeContext (Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables) | |
GLSL-Compute Refine Context.
The GLSL-Compute implementation of the Refine module contextual functionality.
Contexts interface the serialized topological data pertaining to the geometric primitives with the capabilities of the selected discrete compute device.
Definition at line 51 of file glslComputeContext.h.
|
virtual |
Destructor.
|
explicitprotected |
void BindVaryingStencilTables | ( | ) | const |
Binds GL buffers containing stencils for 'varying' interpolation.
void BindVertexStencilTables | ( | ) | const |
Binds GL buffers containing stencils for 'vertex' interpolation.
|
static |
Creates an GLSLComputeContext instance
vertexStencilTables | The Far::StencilTables used for vertex interpolation |
varyingStencilTables | The Far::StencilTables used for varying interpolation |
|
inline |
Returns the number of control vertices.
Definition at line 75 of file glslComputeContext.h.
GLuint GetVertexStencilTablesOffsets | ( | ) | const |
Returns the Cuda buffer containing vertex-stencil stencil offsets.
GLuint GetVertexStencilTablesSizes | ( | ) | const |
Returns the Cuda buffer containing vertex-stencil stencil sizes.
bool HasVaryingStencilTables | ( | ) | const |
Returns true if the Context has a 'varying' interpolation stencil table.
bool HasVertexStencilTables | ( | ) | const |
Returns true if the Context has a 'vertex' interpolation stencil table.
void UnbindStencilTables | ( | ) | const |
Unbinds GL stencil buffers.