This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofBufferObject.h
Go to the documentation of this file.
Definition ofBufferObject.h:8
GLuint getId() const
returns the id of the buffer if it's allocated or 0 otherwise
Definition ofBufferObject.cpp:114
void updateData(GLintptr offset, GLsizeiptr bytes, const void *data)
Definition ofBufferObject.cpp:136
void unbindRange(GLenum target, GLuint index) const
binds the given target and index to 0
Definition ofBufferObject.cpp:109
void bindRange(GLenum target, GLuint index, GLintptr offset, GLsizeiptr size) const
glBindBufferRange: https://www.opengl.org/sdk/docs/man4/html/glBindBufferRange.xhtml
Definition ofBufferObject.cpp:101
void bind(GLenum target) const
glBindBuffer: https://www.opengl.org/sdk/docs/man4/html/glBindBuffer.xhtml
Definition ofBufferObject.cpp:70
void allocate(const std::vector< T > &data, GLenum usage)
Definition ofBufferObject.h:24
void setData(const ofPixels_< T > &data, GLenum usage)
Definition ofBufferObject.h:79
void setData(const std::vector< T > &data, GLenum usage)
Definition ofBufferObject.h:74
void unbind(GLenum target) const
binds the passed target to buffer 0
Definition ofBufferObject.cpp:78
void bindBase(GLenum target, GLuint index) const
glBindBufferBase: https://www.opengl.org/sdk/docs/man4/html/glBindBufferBase.xhtml
Definition ofBufferObject.cpp:86
void updateData(const std::vector< T > &data)
Definition ofBufferObject.h:93
void setData(GLsizeiptr bytes, const void *data, GLenum usage)
Definition ofBufferObject.cpp:119
void updateData(GLintptr offset, const std::vector< T > &data)
Definition ofBufferObject.h:86
void * mapRange(GLintptr offset, GLsizeiptr length, GLenum access)
Definition ofBufferObject.cpp:214
void allocate(const ofPixels_< T > &data, GLenum usage)
Definition ofBufferObject.h:29
void unbindBase(GLenum target, GLuint index) const
binds the given target and index to buffer 0
Definition ofBufferObject.cpp:94
bool isAllocated() const
true if allocate was called before
Definition ofBufferObject.cpp:66
T * mapRange(GLintptr offset, GLsizeiptr length, GLenum access)
Definition ofBufferObject.h:126
void unmapRange()
same as unmap, just to make the api more clear
Definition ofBufferObject.cpp:229
PixelType * getData()
Retrieves pixel data from the ofPixel object.
Definition ofPixels.cpp:500
size_t size() const
Get the number of values that the ofPixels object contains, so an RGB data 400x400 would be 480,...
Definition ofPixels.cpp:997