Public Member Functions

  • Torus ()
  • colors (bool enable=true)
  • center (const vec3 &center)
  • subdivisionsAxis (int subdiv)
  • subdivisionsHeight (int subdiv)
  • size_t
    getNumVertices () const override
  • size_t
    getNumIndices () const override
  • getPrimitive () const override
  • uint8_t
    getAttribDims (Attrib attr) const override
  • getAvailableAttribs () const override
  • void
    loadInto (Target *target, const AttribSet &requestedAttribs) const override
  • clone () const override

Protected Member Functions

  • void
    updateCounts ()
  • void
    calculate (std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec2 > *texCoords, std::vector< vec3 > *colors, std::vector< uint32_t > *indices) const
  • void
    forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • vec3
    mCenter
  • float
    mRadiusMajor
  • float
    mRadiusMinor
  • int
    mSubdivisionsAxis
  • int
    mSubdivisionsHeight
  • float
    mHeight
  • float
    mCoils
  • unsigned
    mTwist
  • float
    mTwistOffset
  • bool
    mHasColors
  • int
    mNumRings
  • int
    mNumAxis