 |
My Project
|
Go to the documentation of this file.
25 #ifndef OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
26 #define OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
28 #include "../version.h"
30 #include "../osd/nonCopyable.h"
31 #include "../osd/opengl.h"
32 #include "../osd/types.h"
37 namespace OPENSUBDIV_VERSION {
52 void *deviceContext = NULL);
152 using namespace OPENSUBDIV_VERSION;
156 #endif // OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
GLuint GetPatchParamTextureBuffer() const
Returns the GL texture buffer containing the patch parameter.
PatchArrayVector _patchArrays
GLuint _patchParamTexture
GLuint GetFVarPatchIndexBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying control vertices.
GLuint _varyingIndexBuffer
std::vector< GLuint > _fvarParamBuffers
GLuint _varyingIndexTexture
GLuint VertexBufferBinding
std::vector< PatchArrayVector > _fvarPatchArrays
GLuint GetFVarPatchParamTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying patch params.
bool allocate(Far::PatchTable const *farPatchTable)
std::vector< GLuint > _fvarIndexBuffers
int GetNumFVarChannels() const
Returns the number of face-varying channel buffers.
PatchArrayVector _varyingPatchArrays
GLuint GetPatchIndexBuffer() const
Returns the GL index buffer containing the patch control vertices.
PatchArrayVector const & GetPatchArrays() const
Returns the patch arrays for vertex index buffer data.
GLuint GetVaryingPatchIndexBuffer() const
Returns the GL index buffer containing the varying control vertices.
GLuint _patchIndexTexture
GLuint GetPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the patch control vertices.
static GLPatchTable * Create(Far::PatchTable const *farPatchTable, void *deviceContext=NULL)
std::vector< PatchArray > PatchArrayVector
GLuint GetPatchParamBuffer() const
Returns the GL index buffer containing the patch parameter.
std::vector< GLuint > _fvarParamTextures
PatchArrayVector const & GetFVarPatchArrays(int fvarChannel=0) const
Returns the patch arrays for face-varying index buffer data.
Container for arrays of parametric patches.
PatchArrayVector const & GetVaryingPatchArrays() const
Returns the patch arrays for varying index buffer data.
GLuint GetVaryingPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the varying control vertices.
std::vector< GLuint > _fvarIndexTextures
GLuint GetFVarPatchParamBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying patch params.
GLuint GetFVarPatchIndexTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying control vertices.