|
void | forEachObserver (C callback) |
|
void | addObservationHelper (Observer *observer) |
|
void | removeObservationHelper (Observer *observer) |
|
◆ BindingType
Type of binding when setting glVertexAttrib*Pointer.
See glVertexAttribPointer and Vertex Specification for details.
Enumerator |
---|
Native | uses glVertexAttribIPointer for integral types, glVertexAttribDPointer for double, and glVertexAttribPointer otherwise
|
ForceFloat | enforces the use of glVertexAttribPointer independent of the buffer type
|
ForceNormalizedFloat | enforces the use of glVertexAttribPointer with normalization of integral types
|
◆ bindAndSetAttribPointer()
bind the buffer object and set the vertex attribute pointer
This will bind the buffer object and then set the respective glVertexAttrib*Pointer. By default, i.e. bindingType
= BindingType::Native, glVertexAttribIPointer (note the 'I') is used for scalar types and glVertexAttribPointer will be used for floating point types. This behavior can be overwritten by bindingType
. Then the buffer is only accessible using float
in the shader.
- See also
- BindingType
- Parameters
-
location | used to set the vertex attribute location |
bindingType | determines which glVertexAttrib*Pointer is used |
◆ setSize()
void inviwo::BufferObject::setSize |
( |
GLsizeiptr |
sizeInBytes | ) |
|
Set the size of the buffer in bytes. Convenience function for calling initialize(nullptr, sizeInBytes)
- Parameters
-
The documentation for this class was generated from the following files:
- bufferobject.h
- bufferobject.cpp