Texture Buffer Object. This is a special 1D texture that VBO-style initialized. The main differences from general 1D texture:
More...
|
| | OpenGl_TextureBufferArb () |
| | Create uninitialized TBO. More...
|
| |
| virtual | ~OpenGl_TextureBufferArb () |
| | Destroy object, will throw exception if GPU memory not released with Release() before. More...
|
| |
| virtual GLenum | GetTarget () const |
| | Override VBO target. More...
|
| |
| bool | IsValid () const |
| | Returns true if TBO is valid. Notice that no any real GL call is performed! More...
|
| |
| virtual void | Release (const OpenGl_Context *theGlCtx) |
| | Destroy object - will release GPU memory if any. More...
|
| |
| bool | Create (const Handle< OpenGl_Context > &theGlCtx) |
| | Creates VBO and Texture names (ids) if not yet generated. Data should be initialized by another method. More...
|
| |
| bool | Init (const Handle< OpenGl_Context > &theGlCtx, const GLuint theComponentsNb, const GLsizei theElemsNb, const GLfloat *theData) |
| | Perform TBO initialization with specified data. Existing data will be deleted. More...
|
| |
| void | BindTexture (const Handle< OpenGl_Context > &theGlCtx, const GLenum theTextureUnit=GL_TEXTURE0) const |
| | Bind TBO to specified Texture Unit. More...
|
| |
| void | UnbindTexture (const Handle< OpenGl_Context > &theGlCtx, const GLenum theTextureUnit=GL_TEXTURE0) const |
| | Unbind TBO. More...
|
| |
| | OpenGl_VertexBuffer () |
| | Create uninitialized VBO. More...
|
| |
| virtual | ~OpenGl_VertexBuffer () |
| | Destroy object. More...
|
| |
| bool | IsValid () const |
| |
| GLuint | GetComponentsNb () const |
| |
| GLsizei | GetElemsNb () const |
| |
| GLenum | GetDataType () const |
| |
| bool | Create (const Handle< OpenGl_Context > &theGlCtx) |
| | Creates VBO name (id) if not yet generated. Data should be initialized by another method. More...
|
| |
| void | Bind (const Handle< OpenGl_Context > &theGlCtx) const |
| | Bind this VBO. More...
|
| |
| void | Unbind (const Handle< OpenGl_Context > &theGlCtx) const |
| | Unbind this VBO. More...
|
| |
| bool | Init (const Handle< OpenGl_Context > &theGlCtx, const GLuint theComponentsNb, const GLsizei theElemsNb, const GLfloat *theData) |
| | Notice that VBO will be unbound after this call. More...
|
| |
| bool | Init (const Handle< OpenGl_Context > &theGlCtx, const GLuint theComponentsNb, const GLsizei theElemsNb, const GLuint *theData) |
| | Notice that VBO will be unbound after this call. More...
|
| |
| bool | Init (const Handle< OpenGl_Context > &theGlCtx, const GLuint theComponentsNb, const GLsizei theElemsNb, const GLubyte *theData) |
| | Notice that VBO will be unbound after this call. More...
|
| |
| bool | SubData (const Handle< OpenGl_Context > &theGlCtx, const GLsizei theElemFrom, const GLsizei theElemsNb, const GLfloat *theData) |
| | Notice that VBO will be unbound after this call. Function replaces portion of data within this VBO using glBufferSubData(). The VBO should be initialized before call. More...
|
| |
| bool | SubData (const Handle< OpenGl_Context > &theGlCtx, const GLsizei theElemFrom, const GLsizei theElemsNb, const GLuint *theData) |
| | Notice that VBO will be unbound after this call. Function replaces portion of data within this VBO using glBufferSubData(). The VBO should be initialized before call. More...
|
| |
| bool | SubData (const Handle< OpenGl_Context > &theGlCtx, const GLsizei theElemFrom, const GLsizei theElemsNb, const GLubyte *theData) |
| | Notice that VBO will be unbound after this call. Function replaces portion of data within this VBO using glBufferSubData(). The VBO should be initialized before call. More...
|
| |
| void | BindVertexAttrib (const Handle< OpenGl_Context > &theGlCtx, const GLuint theAttribLoc) const |
| | Bind this VBO to active GLSL program. More...
|
| |
| void | UnbindVertexAttrib (const Handle< OpenGl_Context > &theGlCtx, const GLuint theAttribLoc) const |
| | Unbind any VBO from active GLSL program. More...
|
| |
| void | BindFixed (const Handle< OpenGl_Context > &theGlCtx, const GLenum theMode) const |
| | Bind this VBO as fixed pipeline attribute. More...
|
| |
| void | UnbindFixed (const Handle< OpenGl_Context > &theGlCtx, const GLenum theMode) const |
| | Unbind this VBO as fixed pipeline attribute. More...
|
| |
| | OpenGl_Resource () |
| | Empty constructor. More...
|
| |
| virtual | ~OpenGl_Resource () |
| | Destructor. Inheritors should call Clean (NULL) within it. More...
|
| |
Public Member Functions inherited from Standard_Transient |
| | Standard_Transient () |
| | Empty constructor. More...
|
| |
| | Standard_Transient (const Standard_Transient &) |
| | Copy constructor – does nothing. More...
|
| |
| Standard_Transient & | operator= (const Standard_Transient &) |
| | Assignment operator, needed to avoid copying reference counter. More...
|
| |
| virtual | ~Standard_Transient () |
| | Destructor must be virtual. More...
|
| |
| virtual void | Delete () const |
| | Memory deallocator for transient classes. More...
|
| |
| virtual void | ShallowDump (Standard_OStream &) const |
| |
virtual const
Handle_Standard_Type & | DynamicType () const |
| | Returns a type information object about this object. More...
|
| |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| | Returns a true value if this is an instance of Type. More...
|
| |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| | Returns a true value if this is an instance of TypeName. More...
|
| |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| | Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
| |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| | Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
| |
| virtual Handle_Standard_Transient | This () const |
| | Returns a Handle which references this object. Must never be called to objects created in stack. More...
|
| |
| Standard_Integer | GetRefCount () const |
| | Get the reference counter of this object. More...
|
| |
Texture Buffer Object. This is a special 1D texture that VBO-style initialized. The main differences from general 1D texture:
- no interpolation between field;
- greater sizes;
- special sampler object in GLSL shader to access data by index.
Notice that though TBO is inherited from VBO this is to unify design user shouldn't cast it to base class and all really useful methods are declared in this class.