GLWDropDownColor Class Reference

#include <GLWDropDownColor.h>

Inheritance diagram for GLWDropDownColor:

GLWDropDown GLWidget GLWSelectorI GLWPushButtonI MetaClass GLWButtonI

List of all members.

Public Member Functions

 GLWDropDownColor (float x=0.0f, float y=0.0f, float w=0.0f)
virtual ~GLWDropDownColor ()
void addColor (Vector &color)
VectorgetCurrentColor ()
void setCurrentColor (Vector &color)
virtual void draw ()
 REGISTER_CLASS_HEADER (GLWDropDownColor)

Protected Attributes

GLTexture colorTexture_
bool createdTexture_


Detailed Description

Definition at line 27 of file GLWDropDownColor.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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   ) 


Member Data Documentation

GLTexture GLWDropDownColor::colorTexture_ [protected]

Definition at line 43 of file GLWDropDownColor.h.

Referenced by addColor().

bool GLWDropDownColor::createdTexture_ [protected]

Definition at line 44 of file GLWDropDownColor.h.

Referenced by addColor().


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