All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdStResourceGL Class Reference

Base class for simple OpenGL resource objects. More...

+ Inheritance diagram for HdStResourceGL:

Public Member Functions

HDST_API HdStResourceGL (TfToken const &role)
 
virtual HDST_API void SetAllocation (GLuint id, size_t size)
 The OpenGL name/identifier for this resource and its size. More...
 
GLuint GetId () const
 Returns the id of the GPU resource. More...
 
- Public Member Functions inherited from HdResource
HD_API HdResource (TfToken const &role)
 
TfToken const & GetRole () const
 Returns the role of the GPU data in this resource. More...
 
HD_API size_t GetSize () const
 Returns the size of the resource allocated in the GPU. More...
 

Additional Inherited Members

- Protected Member Functions inherited from HdResource
HD_API void SetSize (size_t size)
 Stores the size of the resource allocated in the GPU. More...
 

Detailed Description

Base class for simple OpenGL resource objects.

Definition at line 47 of file resourceGL.h.

Member Function Documentation

GLuint GetId ( ) const
inline

Returns the id of the GPU resource.

Definition at line 59 of file resourceGL.h.

virtual HDST_API void SetAllocation ( GLuint  id,
size_t  size 
)
virtual

The OpenGL name/identifier for this resource and its size.


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