![]() |
Cinder
0.9.1
|
#include <GeomIo.h>
Inherits cinder::geom::Source.
Public Member Functions | |
Icosahedron () | |
Icosahedron & | colors (bool enable=true) |
size_t | getNumVertices () const override |
size_t | getNumIndices () const override |
Primitive | getPrimitive () const override |
uint8_t | getAttribDims (Attrib attr) const override |
AttribSet | getAvailableAttribs () const override |
void | loadInto (Target *target, const AttribSet &requestedAttribs) const override |
Icosahedron * | clone () const override |
Protected Member Functions | |
void | calculate (std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec3 > *colors, std::vector< vec2 > *texcoords, std::vector< uint32_t > *indices) const |
void | copyIndicesNonIndexed (uint16_t *dest) const |
void | copyIndicesNonIndexed (uint32_t *dest) const |
template<typename T > | |
void | forceCopyIndicesTrianglesImpl (T *dest) const |
Protected Attributes | |
bool | mHasColors |
Static Protected Attributes | |
static float | sPositions [12 *3] |
static float | sTexCoords [60 *2] |
static uint32_t | sIndices [60] |
Friends | |
class | Icosphere |
class | WireIcosahedron |
cinder::geom::Icosahedron::Icosahedron | ( | ) |
Icosahedron& cinder::geom::Icosahedron::colors | ( | bool | enable = true | ) |
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
overridevirtual |
Implements cinder::geom::Source.
|
protected |
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
|
protectedinherited |
Builds a sequential list of vertices to simulate an indexed geometry when Source is non-indexed. Assumes dest contains storage for getNumVertices() entries.
|
protectedinherited |
|
friend |
|
friend |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |