TexturedPoly

const Bitmap &texture, Vec2D rotationPivot = Vec2D( 0.0, 0.0 ))

Constructs a new textured polygon with the specified texture and rotation pivot.

const Bitmap &texture, const std_container &vertices, Vec2D rotationPivot = Vec2D( 0.0, 0.0 ))

Constructs a new textured polygon with the specified texture, vertices from an STL container and a rotation pivot.

const Bitmap &texture, const Vec2D *vertices, int numVertices, Vec2D rotationPivot = Vec2D( 0.0, 0.0 ))

Constructs a new textured polygon with the specified texture, vertices from an an array and a rotation pivot.

Examples

Bitmap myBmp( ... );

// Construct a new textured polygon with myBmp as the texture //
TexturedPoly myPoly( myBmp );


Member functions

Advanced functions

Construct
Immediately pre-caches the internal structure of the TexturedPoly

Parent Class


Questions about TexturedPoly? Click here.