80

Building 3D shapes
GeometryArray class methods

  • Generic methods on GeometryArray also set colors and texture coordinates
  • Discussed in the section on shape appearance
  • Method
    void setColor( int index, * color )
    void setColors( int index, * color )
    void setTextureCoordinate( int index, * texCoord )
    void setTextureCoordinates( int index, * texCoord )

  • Color method variants accept byte, float, Color3f, Color4f, Color3b, Color4b, and Vector3f
  • Texture coordinate method variants accept float, Point2f, and Point3f