Public Member Functions

  • TriMesh (const Format &format=Format().positions().normals().texCoords())
  • TriMesh (const geom::Source &source)
  • TriMesh (const geom::Source &source, const Format &format)
  • loadInto (geom::Target *target, const geom::AttribSet &requestedAttribs) const override
  • clone () const override
  • 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

  • initFromFormat (const TriMesh::Format &format)
  • loadFromSource (const geom::Source &source)
  • getAttribPointer (geom::Attrib attr, const float **resultPtr, size_t *resultStrideBytes, uint8_t *resultDims) const
  • copyAttrib (geom::Attrib attr, uint8_t dims, size_t stride, const float *srcData, size_t count)
  • readImplV2 (const IStreamRef &in)
  • readImplV1 (const IStreamRef &in)
  • 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