#include <GLWFlag.h>

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) |
| Vector & | getColor () |
| REGISTER_CLASS_HEADER (GLWFlag) | |
Protected Attributes | |
| Vector | color_ |
| float | offset_ |
Definition at line 28 of file GLWFlag.h.
| 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.
| void GLWFlag::simulate | ( | float | frameTime | ) | [virtual] |
| 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] |
| GLWFlag::REGISTER_CLASS_HEADER | ( | GLWFlag | ) |
Vector GLWFlag::color_ [protected] |
float GLWFlag::offset_ [protected] |
Definition at line 46 of file GLWFlag.h.
Referenced by draw(), getOffset(), setOffset(), and simulate().
1.5.3