ColorFromAttrib /

#includecinder/GeomIo.h

Modifies the color of a geom::Source as a function of a 2D or 3D input attribute.


Public Member Functions

  • ColorFromAttrib (Attrib attrib, const std::function< Colorf(vec2)> &fn)
  • ColorFromAttrib (Attrib attrib, const std::function< Colorf(vec3)> &fn)
  • getAttrib () const
  • attrib (Attrib attrib)
  • 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 Member Functions

  • ColorFromAttrib (Attrib attrib, const std::function< Colorf(vec2)> &fn2, const std::function< Colorf(vec3)> &fn3)

Protected Attributes

  • mAttrib
  • std::function< Colorf(vec2)>
    mFnColor2
  • std::function< Colorf(vec3)>
    mFnColor3