All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Mesh< VERTEX_BUFFER, COMPUTE_CONTROLLER, GLDrawContext > Class Template Reference

#include <glMesh.h>

Inheritance diagram for Mesh< VERTEX_BUFFER, COMPUTE_CONTROLLER, GLDrawContext >:
MeshInterface< DRAW_CONTEXT >

Public Types

typedef VERTEX_BUFFER VertexBuffer
 
typedef COMPUTE_CONTROLLER ComputeController
 
typedef
ComputeController::ComputeContext 
ComputeContext
 
typedef GLDrawContext DrawContext
 
typedef
DrawContext::VertexBufferBinding 
VertexBufferBinding
 
- Public Types inherited from MeshInterface< DRAW_CONTEXT >
typedef DRAW_CONTEXT DrawContext
 
typedef
DrawContext::VertexBufferBinding 
VertexBufferBinding
 

Public Member Functions

 Mesh (ComputeController *computeController, Far::TopologyRefiner *refiner, int numVertexElements, int numVaryingElements, int level, MeshBitset bits)
 
 Mesh (ComputeController *computeController, Far::TopologyRefiner *refiner, VertexBuffer *vertexBuffer, VertexBuffer *varyingBuffer, ComputeContext *computeContext, DrawContext *drawContext)
 
virtual ~Mesh ()
 
virtual int GetNumVertices () const
 
virtual void UpdateVertexBuffer (float const *vertexData, int startVertex, int numVerts)
 
virtual void UpdateVaryingBuffer (float const *varyingData, int startVertex, int numVerts)
 
virtual void Refine ()
 
virtual void Refine (VertexBufferDescriptor const *vertexDesc, VertexBufferDescriptor const *varyingDesc, bool interleaved)
 
virtual void Synchronize ()
 
virtual VertexBufferBinding BindVertexBuffer ()
 
virtual VertexBufferBinding BindVaryingBuffer ()
 
virtual DrawContextGetDrawContext ()
 
virtual VertexBufferGetVertexBuffer ()
 
virtual VertexBufferGetVaryingBuffer ()
 
virtual Far::TopologyRefiner
const * 
GetTopologyRefiner () const
 
virtual void SetFVarDataChannel (int fvarWidth, std::vector< float > const &fvarData)
 
- Public Member Functions inherited from MeshInterface< DRAW_CONTEXT >
 MeshInterface ()
 
virtual ~MeshInterface ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from MeshInterface< DRAW_CONTEXT >
static int getNumVertices (Far::TopologyRefiner const &refiner)
 
static void refineMesh (Far::TopologyRefiner &refiner, int level, bool adaptive)
 

Detailed Description

template<class VERTEX_BUFFER, class COMPUTE_CONTROLLER>
class OpenSubdiv::OPENSUBDIV_VERSION::Osd::Mesh< VERTEX_BUFFER, COMPUTE_CONTROLLER, GLDrawContext >

Definition at line 47 of file glMesh.h.

Member Typedef Documentation

typedef ComputeController::ComputeContext ComputeContext

Definition at line 51 of file glMesh.h.

typedef COMPUTE_CONTROLLER ComputeController

Definition at line 50 of file glMesh.h.

Definition at line 52 of file glMesh.h.

typedef VERTEX_BUFFER VertexBuffer

Definition at line 49 of file glMesh.h.

Definition at line 53 of file glMesh.h.

Constructor & Destructor Documentation

Mesh ( ComputeController computeController,
Far::TopologyRefiner refiner,
int  numVertexElements,
int  numVaryingElements,
int  level,
MeshBitset  bits 
)
inline

Definition at line 55 of file glMesh.h.

Mesh ( ComputeController computeController,
Far::TopologyRefiner refiner,
VertexBuffer vertexBuffer,
VertexBuffer varyingBuffer,
ComputeContext computeContext,
DrawContext drawContext 
)
inline

Definition at line 81 of file glMesh.h.

virtual ~Mesh ( )
inlinevirtual

Definition at line 98 of file glMesh.h.

Member Function Documentation

virtual VertexBufferBinding BindVaryingBuffer ( )
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 141 of file glMesh.h.

virtual VertexBufferBinding BindVertexBuffer ( )
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 137 of file glMesh.h.

virtual DrawContext* GetDrawContext ( )
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 145 of file glMesh.h.

virtual int GetNumVertices ( ) const
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 107 of file glMesh.h.

virtual Far::TopologyRefiner const* GetTopologyRefiner ( ) const
inlinevirtual

Definition at line 157 of file glMesh.h.

virtual VertexBuffer* GetVaryingBuffer ( )
inlinevirtual

Definition at line 153 of file glMesh.h.

virtual VertexBuffer* GetVertexBuffer ( )
inlinevirtual

Definition at line 149 of file glMesh.h.

virtual void Refine ( )
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 121 of file glMesh.h.

virtual void Refine ( VertexBufferDescriptor const *  vertexDesc,
VertexBufferDescriptor const *  varyingDesc,
bool  interleaved 
)
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 125 of file glMesh.h.

virtual void SetFVarDataChannel ( int  fvarWidth,
std::vector< float > const &  fvarData 
)
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 161 of file glMesh.h.

virtual void Synchronize ( )
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 133 of file glMesh.h.

virtual void UpdateVaryingBuffer ( float const *  varyingData,
int  startVertex,
int  numVerts 
)
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 117 of file glMesh.h.

virtual void UpdateVertexBuffer ( float const *  vertexData,
int  startVertex,
int  numVerts 
)
inlinevirtual

Implements MeshInterface< DRAW_CONTEXT >.

Definition at line 113 of file glMesh.h.


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