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

Triangle2D Class Reference
[2D]

#include <lvt/2d.h>

Inheritance diagram for Triangle2D:

Inheritance graph
[legend]
List of all members.

Detailed Description

A two-dimensional triangle.


Public Member Functions

int GetHeight () const
 Returns the triangle's height.
int GetWidth () const
 Returns the triangle's width.
virtual void Render ()
 Renders the object.
void SetHeight (int h)
 Sets the triangle's height.
void SetSize (int w, int h)
 Sets the size and and shape of the triangle.
void SetWidth (int w)
 Sets the triangle's width.


Member Function Documentation

int GetHeight  )  const [inline]
 

Returns the triangle's height.

int GetWidth  )  const [inline]
 

Returns the triangle's width.

virtual void Render  )  [virtual]
 

Renders the object.

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

Implements Shape2D.

void SetHeight int  h  )  [inline]
 

Sets the triangle's height.

void SetSize int  w,
int  h
[inline]
 

Sets the size and and shape of the triangle.

Parameters:
w New width of the rectangle.
h New height of the rectangle.

void SetWidth int  w  )  [inline]
 

Sets the triangle's width.


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