#include <GLWDropDownColor.h>

Public Member Functions | |
| GLWDropDownColor (float x=0.0f, float y=0.0f, float w=0.0f) | |
| virtual | ~GLWDropDownColor () |
| void | addColor (Vector &color) |
| Vector & | getCurrentColor () |
| void | setCurrentColor (Vector &color) |
| virtual void | draw () |
| REGISTER_CLASS_HEADER (GLWDropDownColor) | |
Protected Attributes | |
| GLTexture | colorTexture_ |
| bool | createdTexture_ |
Definition at line 27 of file GLWDropDownColor.h.
| GLWDropDownColor::GLWDropDownColor | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f | |||
| ) |
Definition at line 27 of file GLWDropDownColor.cpp.
| GLWDropDownColor::~GLWDropDownColor | ( | ) | [virtual] |
Definition at line 32 of file GLWDropDownColor.cpp.
| void GLWDropDownColor::addColor | ( | Vector & | color | ) |
Definition at line 36 of file GLWDropDownColor.cpp.
References GLWDropDown::addEntry(), colorTexture_, GLTexture::create(), createdTexture_, GLWSelectorEntry::getColor(), S3D::getDataFile(), GLWSelectorEntry::getTextureWidth(), LANG_STRING, and ImageFactory::loadImageHandle().
Referenced by PlayerDialog::nextPlayer().
| Vector & GLWDropDownColor::getCurrentColor | ( | ) |
Definition at line 52 of file GLWDropDownColor.cpp.
References GLWSelectorEntry::getColor(), GLWDropDown::getCurrentEntry(), and Vector::getNullVector().
Referenced by PlayerDialog::buttonDown(), draw(), and PlayerDialog::nextPlayer().
| void GLWDropDownColor::setCurrentColor | ( | Vector & | color | ) |
Definition at line 58 of file GLWDropDownColor.cpp.
References GLWDropDown::current_, GLWSelectorEntry::getColor(), GLWDropDown::handler_, GLWidget::id_, GLWDropDownI::select(), and GLWDropDown::texts_.
Referenced by PlayerDialog::nextPlayer().
| void GLWDropDownColor::draw | ( | ) | [virtual] |
Reimplemented from GLWDropDown.
Definition at line 82 of file GLWDropDownColor.cpp.
References GLWDropDown::draw(), getCurrentColor(), GLWDropDown::getCurrentEntry(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glVertex2f(), GLState::TEXTURE_OFF, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| GLWDropDownColor::REGISTER_CLASS_HEADER | ( | GLWDropDownColor | ) |
GLTexture GLWDropDownColor::colorTexture_ [protected] |
bool GLWDropDownColor::createdTexture_ [protected] |
1.5.3