Public Member Functions

  • TriMesh (const Format &format=Format().positions().normals().texCoords())
  • TriMesh (const geom::Source &source)
  • TriMesh (const geom::Source &source, const Format &format)
  • void
    loadInto (geom::Target *target, const geom::AttribSet &requestedAttribs) const override
  • clone () const override
  • void
    clear ()
  • bool
    hasNormals () const
  • bool
    hasTangents () const
  • bool
    hasBitangents () const
  • bool
    hasColors () const
  • bool
    hasColorsRgb () const
  • bool
    hasColorsRgba () const
  • uint8_t
    getAttribDims (geom::Attrib attr) const override
  • getAvailableAttribs () const override

Static Public Member Functions


Protected Member Functions

  • void
    initFromFormat (const TriMesh::Format &format)
  • void
    loadFromSource (const geom::Source &source)
  • void
    getAttribPointer (geom::Attrib attr, const float **resultPtr, size_t *resultStrideBytes, uint8_t *resultDims) const
  • void
    copyAttrib (geom::Attrib attr, uint8_t dims, size_t stride, const float *srcData, size_t count)
  • void
    readImplV2 (const IStreamRef &in)
  • void
    readImplV1 (const IStreamRef &in)
  • void
    forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • uint8_t
    mPositionsDims
  • uint8_t
    mNormalsDims
  • uint8_t
    mTangentsDims
  • uint8_t
    mBitangentsDims
  • uint8_t
    mColorsDims
  • uint8_t
    mTexCoords0Dims
  • uint8_t
    mTexCoords1Dims
  • uint8_t
    mTexCoords2Dims
  • uint8_t
    mTexCoords3Dims
  • std::vector< float >
    mPositions
  • std::vector< float >
    mColors
  • std::vector< vec3 >
    mNormals
  • std::vector< vec3 >
    mTangents
  • std::vector< vec3 >
    mBitangents
  • std::vector< float >
    mTexCoords0
  • std::vector< float >
    mTexCoords1
  • std::vector< float >
    mTexCoords2
  • std::vector< float >
    mTexCoords3
  • std::vector< uint32_t >
    mIndices

Friends

  • friend class
    TriMeshGeomTarget