SourceModsContext /

#includecinder/GeomIo.h

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


Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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