Constant /

#includecinder/GeomIo.h

Sets an attribute of a geom::Source to be a constant value for every vertex. Determines dimension from constructor (vec4 -> 4, for example)


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)
  • clone () const override
  • uint8_t
    getAttribDims (Attrib attr, uint8_t upstreamDims) const override
  • getAvailableAttribs (const Modifier::Params &upstreamParams) const override
  • void
    process (SourceModsContext *ctx, const AttribSet &requestedAttribs) const override
  • size_t
    getNumVertices (const Modifier::Params &upstreamParams) const
  • size_t
    getNumIndices (const Modifier::Params &upstreamParams) const
  • getPrimitive (const Modifier::Params &upstreamParams) const

Protected Attributes