SourceModsContext /

#includecinder/GeomIo.h

Base class for SourceMods<> and SourceModsPtr<> Used by Modifiers to process Source -> Target


Public Member Functions

  • SourceModsContext (const SourceMods *sourceMods)
  • loadInto (Target *target, const AttribSet &requestedAttribs)
  • uint8_t
    getAttribDims (Attrib attr) const override
  • copyAttrib (Attrib attr, uint8_t dims, size_t strideBytes, const float *srcData, size_t count) override
  • copyIndices (Primitive primitive, const uint32_t *source, size_t numIndices, uint8_t requiredBytesPerIndex) override
  • clearAttrib (Attrib attr)
  • clearIndices ()
  • size_t
    getNumVertices () const
  • size_t
    getNumIndices () const
  • getPrimitive () const
  • getAvailableAttribs () const
  • processUpstream (const AttribSet &requestedAttribs)
  • float *
    getAttribData (Attrib attr)
  • const float *
    getAttribData (Attrib attr) const
  • uint32_t *
    getIndicesData ()
  • const uint32_t *
    getIndicesData () const
  • preload (const AttribSet &requestedAttribs)
  • combine (const SourceModsContext &rhs)
  • complete (Target *target, const AttribSet &requestedAttribs)

Static Public Member Functions

  • copyIndexDataForceTriangles (Primitive primitive, const uint32_t *source, size_t numIndices, uint32_t indexOffset, uint32_t *target)
  • copyIndexDataForceTriangles (Primitive primitive, const uint32_t *source, size_t numIndices, uint16_t indexOffset, uint16_t *target)
  • copyIndexDataForceLines (Primitive primitive, const uint32_t *source, size_t numIndices, uint32_t indexOffset, uint32_t *target)
  • generateIndicesForceTriangles (Primitive primitive, size_t numInputIndices, uint32_t indexOffset, uint32_t *target)
  • generateIndicesForceLines (Primitive primitive, size_t numInputIndices, uint32_t indexOffset, uint32_t *target)

Protected Member Functions

  • copyIndexData (const uint32_t *source, size_t numIndices, uint32_t *target)
  • copyIndexData (const uint32_t *source, size_t numIndices, uint16_t *target)