#include <DxVbo.h>
|
enum | { NONE,
STATIC,
DYNAMIC
} |
|
enum | {
ATTR_INDICES,
ATTR_POSITIONS,
ATTR_NORMALS,
ATTR_COLORS_RGB,
ATTR_COLORS_RGBA,
ATTR_TEXCOORDS2D_0,
ATTR_TEXCOORDS2D_1,
ATTR_TEXCOORDS2D_2,
ATTR_TEXCOORDS2D_3,
ATTR_TEXCOORDS3D_0,
ATTR_TEXCOORDS3D_1,
ATTR_TEXCOORDS3D_2,
ATTR_TEXCOORDS3D_3,
ATTR_TOTAL
} |
|
enum | { ATTR_MAX_TEXTURE_UNIT = 3
} |
|
enum | { INDEX_BUFFER = 0,
STATIC_BUFFER,
DYNAMIC_BUFFER,
TOTAL_BUFFERS
} |
|
|
| VboMesh () |
|
| VboMesh (const TriMesh &triMesh, Layout layout=Layout()) |
|
| VboMesh (const TriMesh2d &triMesh, Layout layout=Layout()) |
|
| VboMesh (size_t numVertices, size_t numIndices, Layout layout, D3D11_PRIMITIVE_TOPOLOGY primitiveType) |
|
| VboMesh (size_t numVertices, size_t numIndices, Layout layout, bool useQuads) |
|
| VboMesh (size_t numVertices, size_t numIndices, Layout layout, D3D11_PRIMITIVE_TOPOLOGY primitiveType, Vbo *indexBuffer, Vbo *staticBuffer, Vbo *dynamicBuffer) |
|
| VboMesh (size_t numVertices, size_t numIndices, Layout layout, GLenum primitiveType, Vbo *indexBuffer, Vbo *staticBuffer, Vbo *dynamicBuffer) |
|
size_t | getNumIndices () const |
|
size_t | getNumVertices () const |
|
D3D11_PRIMITIVE_TOPOLOGY | getPrimitiveType () const |
|
const Layout & | getLayout () const |
|
void | bindIndexBuffer () const |
|
void | bindAllData () const |
|
void | bufferIndices (const std::vector< uint32_t > &indices) |
|
void | bufferPositions (const std::vector< Vec3f > &positions) |
|
void | bufferPositions (const Vec3f *positions, size_t count) |
|
void | bufferNormals (const std::vector< Vec3f > &normals) |
|
void | bufferTexCoords2d (size_t unit, const std::vector< Vec2f > &texCoords) |
|
void | bufferTexCoords3d (size_t unit, const std::vector< Vec3f > &texCoords) |
|
void | bufferColorsRGB (const std::vector< Color > &colors) |
|
void | bufferColorsRGBA (const std::vector< ColorA > &colors) |
|
class VertexIter | mapVertexBuffer () |
|
Vbo & | getIndexVbo () const |
|
Vbo & | getStaticVbo () const |
|
Vbo & | getDynamicVbo () const |
|
size_t | getTexCoordOffset (size_t unit) const |
|
void | setTexCoordOffset (size_t unit, size_t aTexCoordOffset) |
|
typedef std::shared_ptr<Obj> VboMesh::* cinder::dx::VboMesh::unspecified_bool_type |
Emulates shared_ptr-like behavior.
Enumerator |
---|
NONE |
|
STATIC |
|
DYNAMIC |
|
Enumerator |
---|
ATTR_INDICES |
|
ATTR_POSITIONS |
|
ATTR_NORMALS |
|
ATTR_COLORS_RGB |
|
ATTR_COLORS_RGBA |
|
ATTR_TEXCOORDS2D_0 |
|
ATTR_TEXCOORDS2D_1 |
|
ATTR_TEXCOORDS2D_2 |
|
ATTR_TEXCOORDS2D_3 |
|
ATTR_TEXCOORDS3D_0 |
|
ATTR_TEXCOORDS3D_1 |
|
ATTR_TEXCOORDS3D_2 |
|
ATTR_TEXCOORDS3D_3 |
|
ATTR_TOTAL |
|
Enumerator |
---|
ATTR_MAX_TEXTURE_UNIT |
|
Enumerator |
---|
INDEX_BUFFER |
|
STATIC_BUFFER |
|
DYNAMIC_BUFFER |
|
TOTAL_BUFFERS |
|
cinder::dx::VboMesh::VboMesh |
( |
| ) |
|
cinder::dx::VboMesh::VboMesh |
( |
size_t |
numVertices, |
|
|
size_t |
numIndices, |
|
|
Layout |
layout, |
|
|
D3D11_PRIMITIVE_TOPOLOGY |
primitiveType |
|
) |
| |
cinder::dx::VboMesh::VboMesh |
( |
size_t |
numVertices, |
|
|
size_t |
numIndices, |
|
|
Layout |
layout, |
|
|
bool |
useQuads |
|
) |
| |
cinder::dx::VboMesh::VboMesh |
( |
size_t |
numVertices, |
|
|
size_t |
numIndices, |
|
|
Layout |
layout, |
|
|
D3D11_PRIMITIVE_TOPOLOGY |
primitiveType, |
|
|
Vbo * |
indexBuffer, |
|
|
Vbo * |
staticBuffer, |
|
|
Vbo * |
dynamicBuffer |
|
) |
| |
cinder::dx::VboMesh::VboMesh |
( |
size_t |
numVertices, |
|
|
size_t |
numIndices, |
|
|
Layout |
layout, |
|
|
GLenum |
primitiveType, |
|
|
Vbo * |
indexBuffer, |
|
|
Vbo * |
staticBuffer, |
|
|
Vbo * |
dynamicBuffer |
|
) |
| |
size_t cinder::dx::VboMesh::getNumIndices |
( |
| ) |
const |
size_t cinder::dx::VboMesh::getNumVertices |
( |
| ) |
const |
D3D11_PRIMITIVE_TOPOLOGY cinder::dx::VboMesh::getPrimitiveType |
( |
| ) |
const |
const Layout& cinder::dx::VboMesh::getLayout |
( |
| ) |
const |
void cinder::dx::VboMesh::bindIndexBuffer |
( |
| ) |
const |
void cinder::dx::VboMesh::bindAllData |
( |
| ) |
const |
void cinder::dx::VboMesh::bufferIndices |
( |
const std::vector< uint32_t > & |
indices | ) |
|
void cinder::dx::VboMesh::bufferPositions |
( |
const std::vector< Vec3f > & |
positions | ) |
|
void cinder::dx::VboMesh::bufferPositions |
( |
const Vec3f * |
positions, |
|
|
size_t |
count |
|
) |
| |
void cinder::dx::VboMesh::bufferNormals |
( |
const std::vector< Vec3f > & |
normals | ) |
|
void cinder::dx::VboMesh::bufferTexCoords2d |
( |
size_t |
unit, |
|
|
const std::vector< Vec2f > & |
texCoords |
|
) |
| |
void cinder::dx::VboMesh::bufferTexCoords3d |
( |
size_t |
unit, |
|
|
const std::vector< Vec3f > & |
texCoords |
|
) |
| |
void cinder::dx::VboMesh::bufferColorsRGB |
( |
const std::vector< Color > & |
colors | ) |
|
void cinder::dx::VboMesh::bufferColorsRGBA |
( |
const std::vector< ColorA > & |
colors | ) |
|
Vbo& cinder::dx::VboMesh::getIndexVbo |
( |
| ) |
const |
Vbo& cinder::dx::VboMesh::getStaticVbo |
( |
| ) |
const |
Vbo& cinder::dx::VboMesh::getDynamicVbo |
( |
| ) |
const |
size_t cinder::dx::VboMesh::getTexCoordOffset |
( |
size_t |
unit | ) |
const |
void cinder::dx::VboMesh::setTexCoordOffset |
( |
size_t |
unit, |
|
|
size_t |
aTexCoordOffset |
|
) |
| |
Emulates shared_ptr-like behavior.
void cinder::dx::VboMesh::reset |
( |
| ) |
|
Emulates shared_ptr-like behavior.
void cinder::dx::VboMesh::initializeBuffers |
( |
bool |
staticDataPlanar | ) |
|
|
protected |
std::shared_ptr<Obj> cinder::dx::VboMesh::mObj |
|
protected |
The documentation for this class was generated from the following files: