Manages a GL uniform buffer object.
More...
|
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) |
| Updates the content of the uniform buffer. More...
|
|
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...
|
|
const TfRefCount & | GetRefCount () const |
|
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
|
| TfWeakBase (const TfWeakBase &) |
|
const TfWeakBase & | __GetTfWeakBase__ () const |
|
const TfWeakBase & | operator= (const TfWeakBase &) |
|
void | EnableNotification2 () const |
|
TF_API void const * | GetUniqueIdentifier () const |
|
|
static GLF_API GlfUniformBlockRefPtr | New (char const *label=nullptr) |
| Returns a new instance. More...
|
|
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
|
|
GLF_API | GlfUniformBlock (char const *label) |
|
TfRefPtr< Tf_Remnant > | _Register () const |
|
template<class T > |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
|
bool | _HasRemnant () const |
|
|
typedef void(* | UniqueChangedFuncPtr) (TfRefBase const *, bool) |
|
Manages a GL uniform buffer object.
Definition at line 47 of file uniformBlock.h.
◆ Bind()
GLF_API void Bind |
( |
GlfBindingMapPtr const & |
bindingMap, |
|
|
std::string const & |
identifier |
|
) |
| |
Binds the uniform buffer using a bindingMap and identifier.
◆ New()
static GLF_API GlfUniformBlockRefPtr New |
( |
char const * |
label = nullptr | ) |
|
|
static |
◆ Update()
GLF_API void 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: