RoundedRect /

#includecinder/GeomIo.h

Public Member Functions

  • RoundedRect ()
  • RoundedRect (const Rectf &r, float cornerRadius=1.0f)
  • rect (const Rectf &r)
  • colors (bool enable=true)
  • cornerSubdivisions (int cornerSubdivisions)
  • cornerRadius (float cornerRadius)
  • texCoords (const vec2 &upperLeft, const vec2 &lowerRight)
  • colors (const ColorAf &upperLeft, const ColorAf &upperRight, const ColorAf &lowerRight, const ColorAf &lowerLeft)
  • size_t
    getNumVertices () const override
  • size_t
    getNumIndices () const override
  • getPrimitive () const override
  • uint8_t
    getAttribDims (Attrib attr) const override
  • getAvailableAttribs () const override
  • loadInto (Target *target, const AttribSet &requestedAttribs) const override
  • clone () const override

Protected Member Functions

  • updateVertexCount ()
  • setDefaultColors ()
  • setDefaultTexCoords ()
  • forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • mRectPositions
  • mRectTexCoords
  • std::array< vec4, 4 >
    mColors
  • bool
    mHasColors
  • int
    mSubdivisions
  • int
    mNumVertices
  • float
    mCornerRadius