All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MeshInterface< DRAW_CONTEXT > Class Template Referenceabstract

#include <mesh.h>

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

Public Types

typedef DRAW_CONTEXT DrawContext
 
typedef
DrawContext::VertexBufferBinding 
VertexBufferBinding
 

Public Member Functions

 MeshInterface ()
 
virtual ~MeshInterface ()
 
virtual int GetNumVertices () const =0
 
virtual void UpdateVertexBuffer (float const *vertexData, int startVertex, int numVerts)=0
 
virtual void UpdateVaryingBuffer (float const *varyingData, int startVertex, int numVerts)=0
 
virtual void Refine ()=0
 
virtual void Refine (VertexBufferDescriptor const *vertexDesc, VertexBufferDescriptor const *varyingDesc, bool interleaved)=0
 
virtual void Synchronize ()=0
 
virtual DrawContextGetDrawContext ()=0
 
virtual VertexBufferBinding BindVertexBuffer ()=0
 
virtual VertexBufferBinding BindVaryingBuffer ()=0
 
virtual void SetFVarDataChannel (int fvarWidth, std::vector< float > const &fvarData)=0
 

Static Protected Member Functions

static int getNumVertices (Far::TopologyRefiner const &refiner)
 
static void refineMesh (Far::TopologyRefiner &refiner, int level, bool adaptive)
 

Detailed Description

template<class DRAW_CONTEXT>
class OpenSubdiv::OPENSUBDIV_VERSION::Osd::MeshInterface< DRAW_CONTEXT >

Definition at line 59 of file mesh.h.

Member Typedef Documentation

typedef DRAW_CONTEXT DrawContext

Definition at line 61 of file mesh.h.

typedef DrawContext::VertexBufferBinding VertexBufferBinding

Definition at line 62 of file mesh.h.

Constructor & Destructor Documentation

MeshInterface ( )
inline

Definition at line 65 of file mesh.h.

virtual ~MeshInterface ( )
inlinevirtual

Definition at line 67 of file mesh.h.

Member Function Documentation

static int getNumVertices ( Far::TopologyRefiner const &  refiner)
inlinestaticprotected

Definition at line 93 of file mesh.h.

static void refineMesh ( Far::TopologyRefiner refiner,
int  level,
bool  adaptive 
)
inlinestaticprotected

Definition at line 99 of file mesh.h.


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