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);
61 return _patchIndexBuffer;
66 return _patchParamBuffer;
71 return _patchIndexTexture;
76 return _patchParamTexture;
81 return _varyingPatchArrays;
86 return _varyingIndexBuffer;
91 return _varyingIndexTexture;
99 return _fvarPatchArrays[fvarChannel];
104 return _fvarIndexBuffers[fvarChannel];
109 return _fvarIndexTextures[fvarChannel];
114 return _fvarParamBuffers[fvarChannel];
119 return _fvarParamTextures[fvarChannel];
152 using namespace OPENSUBDIV_VERSION;
156 #endif // OPENSUBDIV3_OSD_GL_PATCH_TABLE_H
PatchArrayVector _varyingPatchArrays
Container for arrays of parametric patches.
GLuint GetPatchParamTextureBuffer() const
Returns the GL texture buffer containing the patch parameter.
std::vector< PatchArrayVector > _fvarPatchArrays
GLuint VertexBufferBinding
GLuint GetPatchIndexBuffer() const
Returns the GL index buffer containing the patch control vertices.
PatchArrayVector const & GetVaryingPatchArrays() const
Returns the patch arrays for varying index buffer data.
GLuint GetPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the patch control vertices.
std::vector< GLuint > _fvarIndexBuffers
GLuint _patchIndexTexture
std::vector< PatchArray > PatchArrayVector
GLuint GetFVarPatchParamBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying patch params.
PatchArrayVector const & GetPatchArrays() const
Returns the patch arrays for vertex index buffer data.
std::vector< GLuint > _fvarParamTextures
GLuint GetPatchParamBuffer() const
Returns the GL index buffer containing the patch parameter.
int GetNumFVarChannels() const
Returns the number of face-varying channel buffers.
std::vector< GLuint > _fvarParamBuffers
GLuint GetVaryingPatchIndexBuffer() const
Returns the GL index buffer containing the varying control vertices.
GLuint GetFVarPatchIndexBuffer(int fvarChannel=0) const
Returns the GL index buffer containing face-varying control vertices.
GLuint GetFVarPatchParamTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying patch params.
PatchArrayVector const & GetFVarPatchArrays(int fvarChannel=0) const
Returns the patch arrays for face-varying index buffer data.
GLuint _patchParamTexture
GLuint GetVaryingPatchIndexTextureBuffer() const
Returns the GL texture buffer containing the varying control vertices.
GLuint GetFVarPatchIndexTextureBuffer(int fvarChannel=0) const
Returns the GL texture buffer containing face-varying control vertices.
std::vector< GLuint > _fvarIndexTextures
GLuint _varyingIndexTexture
GLuint _varyingIndexBuffer
PatchArrayVector _patchArrays