#include <VboMesh.h>
cinder::gl::VboMesh::Layout::Layout |
( |
| ) |
|
Layout& cinder::gl::VboMesh::Layout::interleave |
( |
bool |
interleave = true | ) |
|
Specifies whether the data is stored planar or interleaved. Deafult is interleaved.
bool cinder::gl::VboMesh::Layout::getInterleave |
( |
| ) |
const |
Returns whether the Layout stores data as interleaved (rather than planar)
Layout& cinder::gl::VboMesh::Layout::usage |
( |
GLenum |
usage | ) |
|
For Desktop GL, GL_STREAM_DRAW
, GL_STREAM_READ
, GL_STREAM_COPY
, GL_STATIC_DRAW
, GL_STATIC_READ
, GL_STATIC_COPY
, GL_DYNAMIC_DRAW
, GL_DYNAMIC_READ
, or GL_DYNAMIC_COPY
. For ES 2, GL_STREAM_DRAW
, GL_STATIC_DRAW
, or GL_DYNAMIC_DRAW
GLenum cinder::gl::VboMesh::Layout::getUsage |
( |
| ) |
const |
Returns the usage for the Layout. Default is GL_STATIC_DRAW
.
Appends an attribute of semantic attrib which is dims-dimensional. Replaces AttribInfo if it exists for attrib.
Appends an attribute using a geom::AttribInfo. Replaces AttribInfo if it exists for attribInfo.getAttrib()
const std::vector<geom::AttribInfo>& cinder::gl::VboMesh::Layout::getAttribs |
( |
| ) |
const |
void cinder::gl::VboMesh::Layout::clearAttribs |
( |
| ) |
|
Clears all attributes in the Layout.
If resultVbo is null then no VBO is allocated.
GLenum cinder::gl::VboMesh::Layout::mUsage |
|
protected |
bool cinder::gl::VboMesh::Layout::mInterleave |
|
protected |
friend cinder::gl::VboMesh::Layout::VboMesh |
|
protected |
The documentation for this class was generated from the following files: