Public Member Functions

  • Icosahedron ()
  • colors (bool enable=true)
  • 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
    calculate (std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec3 > *colors, std::vector< vec2 > *texcoords, std::vector< uint32_t > *indices) const
  • void
    forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • bool
    mHasColors
  • float
    sPositions [12 *3]
  • float
    sTexCoords [60 *2]
  • uint32_t
    sIndices [60]

Friends