![]() |
Cinder
0.9.1
|
#include <GeomIo.h>
Inherits cinder::geom::Modifier.
Public Member Functions | |
Constant (geom::Attrib attrib, float v) | |
Constant (geom::Attrib attrib, const vec2 &v) | |
Constant (geom::Attrib attrib, const vec3 &v) | |
Constant (geom::Attrib attrib, const vec4 &v) | |
Modifier * | clone () const override |
uint8_t | getAttribDims (Attrib attr, uint8_t upstreamDims) const override |
AttribSet | getAvailableAttribs (const Modifier::Params &upstreamParams) 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 |
Protected Attributes | |
geom::Attrib | mAttrib |
vec4 | mValue |
int | mDims |
Sets an attribute of a geom::Source to be a constant value for every vertex. Determines dimension from constructor (vec4 -> 4, for example)
cinder::geom::Constant::Constant | ( | geom::Attrib | attrib, |
float | v | ||
) |
cinder::geom::Constant::Constant | ( | geom::Attrib | attrib, |
const vec2 & | v | ||
) |
cinder::geom::Constant::Constant | ( | geom::Attrib | attrib, |
const vec3 & | v | ||
) |
cinder::geom::Constant::Constant | ( | geom::Attrib | attrib, |
const vec4 & | v | ||
) |
|
overridevirtual |
Implements cinder::geom::Modifier.
|
overridevirtual |
Reimplemented from 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.
|
protected |
|
protected |
|
protected |