![]() |
Cinder
0.9.1
|
#include <GeomIo.h>
Inherits cinder::geom::Modifier.
Inherited by cinder::geom::Rotate, cinder::geom::Scale, and cinder::geom::Translate.
Public Member Functions | |
Transform (const mat4 &transform) | |
const mat4 & | getMatrix () const |
void | setMatrix (const mat4 &transform) |
Modifier * | clone () const override |
uint8_t | getAttribDims (Attrib attr, uint8_t upstreamDims) const override |
void | process (SourceModsContext *ctx, const AttribSet &requestedAttribs) const override |
virtual size_t | getNumVertices (const Modifier::Params &upstreamParams) const |
virtual size_t | getNumIndices (const Modifier::Params &upstreamParams) const |
virtual Primitive | getPrimitive (const Modifier::Params &upstreamParams) const |
virtual AttribSet | getAvailableAttribs (const Modifier::Params &upstreamParams) const |
Protected Attributes | |
mat4 | mTransform |
"Bakes" a mat4 transformation into the positions, normals and tangents of a geom::Source. Promotes 2D positions to 3D.
cinder::geom::Transform::Transform | ( | const mat4 & | transform | ) |
Does not currently support a projection matrix (i.e. doesn't divide by 'w' )
const mat4& cinder::geom::Transform::getMatrix | ( | ) | const |
Returns the mat4 used to transform positions, normals and tangents.
void cinder::geom::Transform::setMatrix | ( | const mat4 & | transform | ) |
Sets the mat4 used to transform positions, normals and tangents.
|
overridevirtual |
Implements cinder::geom::Modifier.
|
overridevirtual |
Reimplemented from cinder::geom::Modifier.
|
overridevirtual |
Implements cinder::geom::Modifier.
|
virtualinherited |
Reimplemented in cinder::geom::Subdivide, and cinder::geom::VertexNormalLines.
|
virtualinherited |
Reimplemented in cinder::geom::Subdivide, cinder::geom::VertexNormalLines, and cinder::geom::Lines.
|
virtualinherited |
Reimplemented in cinder::geom::VertexNormalLines, and cinder::geom::Lines.
|
virtualinherited |
|
protected |