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

#include <uniformBlock.h>

+ Inheritance diagram for GlfUniformBlock:

Public Member Functions

virtual GLF_API ~GlfUniformBlock ()
 
GLF_API void Bind (GlfBindingMapPtr const &bindingMap, std::string const &identifier)
 Binds the uniform buffer using a bindingMap and identifier. More...
 
GLF_API void Update (const void *data, int size)
 
- Public Member Functions inherited from TfRefBase
 TfRefBase ()
 
 TfRefBase (TfRefBase const &)
 
TfRefBaseoperator= (TfRefBase const &)
 
size_t GetCurrentCount () const
 Return the current reference count of this object. More...
 
bool IsUnique () const
 Return true if only one TfRefPtr points to this object. More...
 
void SetShouldInvokeUniqueChangedListener (bool shouldCall)
 
- Public Member Functions inherited from TfWeakBase
 TfWeakBase ()
 
 TfWeakBase (const TfWeakBase &)
 
const TfWeakBase__GetTfWeakBase__ () const
 
const TfWeakBaseoperator= (const TfWeakBase &)
 
void EnableNotification2 () const
 
TF_API void const * GetUniqueIdentifier () const
 

Static Public Member Functions

static GLF_API
GlfUniformBlockRefPtr 
New (char const *label=nullptr)
 Returns a new instance. More...
 
- Static Public Member Functions inherited from TfRefBase
static TF_API void SetUniqueChangedListener (UniqueChangedListener listener)
 

Protected Member Functions

GLF_API GlfUniformBlock (char const *label)
 
- Protected Member Functions inherited from TfRefBase
virtual TF_API ~TfRefBase ()
 
- Protected Member Functions inherited from TfWeakBase
 ~TfWeakBase ()
 
TfRefPtr< Tf_Remnant_Register () const
 
template<class T >
TfRefPtr< Tf_Remnant_Register (T *tempRmnt) const
 
bool _HasRemnant () const
 

Additional Inherited Members

- Public Types inherited from TfRefBase
typedef void(* UniqueChangedFuncPtr )(TfRefBase const *, bool)
 

Detailed Description

Manages a GL uniform buffer object.

Definition at line 47 of file uniformBlock.h.

Constructor & Destructor Documentation

virtual GLF_API GlfUniformBlock::~GlfUniformBlock ( )
virtual
GLF_API GlfUniformBlock::GlfUniformBlock ( char const *  label)
protected

Member Function Documentation

GLF_API void GlfUniformBlock::Bind ( GlfBindingMapPtr const &  bindingMap,
std::string const &  identifier 
)

Binds the uniform buffer using a bindingMap and identifier.

static GLF_API GlfUniformBlockRefPtr GlfUniformBlock::New ( char const *  label = nullptr)
static

Returns a new instance.

GLF_API void GlfUniformBlock::Update ( const void data,
int  size 
)

Updates the content of the uniform buffer. If the size is different, the buffer will be reallocated.


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