Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Shape2D Class Reference
[2D]

#include <lvt/2d.h>

Inheritance diagram for Shape2D:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract base class representing a 2D object.


Public Member Functions

virtual void Render ()=0
 Renders the object.
void SetPosition (int x, int y, int z=0)
 Sets the position of the object.
int GetXPosition () const
 Returns the relevant coordinate of the shape's position.
int GetYPosition () const
 Returns the relevant coordinate of the shape's position.
int GetZPosition () const
 Returns the relevant coordinate of the shape's position.


Member Function Documentation

int GetXPosition  )  const [inline]
 

Returns the relevant coordinate of the shape's position.

int GetYPosition  )  const [inline]
 

Returns the relevant coordinate of the shape's position.

int GetZPosition  )  const [inline]
 

Returns the relevant coordinate of the shape's position.

virtual void Render  )  [pure virtual]
 

Renders the object.

A call to render on a 2D object also flushes the OpenGL output buffer.

Implements Shape.

Implemented in Circle2D, Rectangle2D, and Triangle2D.

void SetPosition int  x,
int  y,
int  z = 0
[inline]
 

Sets the position of the object.


Generated on Thu Feb 17 09:45:48 2005 for liblvt by  doxygen 1.4.1