GLWFlag Class Reference

#include <GLWFlag.h>

Inheritance diagram for GLWFlag:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWFlag (Vector &color=GLWFont::widgetFontColor, float x=0.0f, float y=0.0f, float w=0.0f)
virtual ~GLWFlag ()
virtual void simulate (float frameTime)
virtual void draw ()
float getOffset ()
void setOffset (float offset)
void setColor (Vector &color)
VectorgetColor ()
 REGISTER_CLASS_HEADER (GLWFlag)

Protected Attributes

Vector color_
float offset_


Detailed Description

Definition at line 28 of file GLWFlag.h.


Constructor & Destructor Documentation

GLWFlag::GLWFlag ( Vector color = GLWFont::widgetFontColor,
float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f 
)

Definition at line 27 of file GLWFlag.cpp.

GLWFlag::~GLWFlag (  )  [virtual]

Definition at line 33 of file GLWFlag.cpp.


Member Function Documentation

void GLWFlag::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 38 of file GLWFlag.cpp.

References offset_.

void GLWFlag::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 43 of file GLWFlag.cpp.

References color_, GL_QUADS, glBegin(), glColor3f(), glEnd(), glVertex2f(), GLWidget::h_, offset_, GLState::TEXTURE_OFF, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

float GLWFlag::getOffset (  )  [inline]

Definition at line 38 of file GLWFlag.h.

References offset_.

Referenced by BuyAccessoryDialog::addPlayerName().

void GLWFlag::setOffset ( float  offset  )  [inline]

Definition at line 39 of file GLWFlag.h.

References offset_.

Referenced by BuyAccessoryDialog::addPlayerName().

void GLWFlag::setColor ( Vector color  )  [inline]

Definition at line 40 of file GLWFlag.h.

References color_.

Vector& GLWFlag::getColor (  )  [inline]

Definition at line 41 of file GLWFlag.h.

References color_.

GLWFlag::REGISTER_CLASS_HEADER ( GLWFlag   ) 


Member Data Documentation

Vector GLWFlag::color_ [protected]

Definition at line 45 of file GLWFlag.h.

Referenced by draw(), getColor(), and setColor().

float GLWFlag::offset_ [protected]

Definition at line 46 of file GLWFlag.h.

Referenced by draw(), getOffset(), setOffset(), and simulate().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:02 2009 for Scorched3D by  doxygen 1.5.3