Public Member Functions

  • Cylinder ()
  • 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
    calculateCap (bool flip, float height, float radius, 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
    mOrigin
  • float
    mHeight
  • vec3
    mDirection
  • float
    mRadiusBase
  • float
    mRadiusApex
  • int
    mSubdivisionsAxis
  • int
    mSubdivisionsHeight
  • int
    mSubdivisionsCap
  • bool
    mHasColors
  • int
    mNumSegments
  • int
    mNumSlices