All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GLSLComputeContext Class Reference

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 GLSLComputeContextCreate (Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables=0)
 

Protected Member Functions

 GLSLComputeContext (Far::StencilTables const *vertexStencilTables, Far::StencilTables const *varyingStencilTables)
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual ~GLSLComputeContext ( )
virtual

Destructor.

GLSLComputeContext ( Far::StencilTables const *  vertexStencilTables,
Far::StencilTables const *  varyingStencilTables 
)
explicitprotected

Member Function Documentation

void BindVaryingStencilTables ( ) const

Binds GL buffers containing stencils for 'varying' interpolation.

void BindVertexStencilTables ( ) const

Binds GL buffers containing stencils for 'vertex' interpolation.

static GLSLComputeContext* Create ( Far::StencilTables const *  vertexStencilTables,
Far::StencilTables const *  varyingStencilTables = 0 
)
static

Creates an GLSLComputeContext instance

Parameters
vertexStencilTablesThe Far::StencilTables used for vertex interpolation
varyingStencilTablesThe Far::StencilTables used for varying interpolation
int GetNumControlVertices ( ) const
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.


The documentation for this class was generated from the following file: