#include <BufferTexture.h>
Inherits cinder::Noncopyable.
Represents a Buffer Texture, or GL_TEXTURE_BUFFER.
cinder::gl::BufferTexture::~BufferTexture |
( |
| ) |
|
Creates and returns a shared BufferTexture object according to internalFormat.
BufferTextureRef cinder::gl::BufferTexture::create |
( |
const void * |
data, |
|
|
size_t |
numBytes, |
|
|
GLenum |
internalFormat, |
|
|
GLenum |
usage = GL_STATIC_DRAW |
|
) |
| |
|
static |
Creates and returns a shared BufferTexture object according to internalFormat, initialized with data of size numBytes.
void cinder::gl::BufferTexture::bindTexture |
( |
uint8_t |
textureUnit = 0 | ) |
|
Binds the associated Texture representation of your BufferObj.
void cinder::gl::BufferTexture::unbindTexture |
( |
uint8_t |
textureUnit = 0 | ) |
|
Unbinds the associated Texture representation of your BufferObj.
void cinder::gl::BufferTexture::setBuffer |
( |
const BufferObjRef & |
buffer, |
|
|
GLenum |
internalFormat |
|
) |
| |
Sets the ossociated BufferObj and its internal format.
GLuint cinder::gl::BufferTexture::getId |
( |
| ) |
|
GLenum cinder::gl::BufferTexture::getTarget |
( |
| ) |
|
Returns the target for the Buffer Texture. GL_TEXTURE_BUFFER
is the only allowable target.
GLint cinder::gl::BufferTexture::getInternalFormat |
( |
| ) |
|
Returns the internal format of the Buffer Texture. It represents the way your BufferObj data is built.
const BufferObjRef& cinder::gl::BufferTexture::getBufferObj |
( |
| ) |
const |
The documentation for this class was generated from the following files: