#include <GLWIcon.h>
Public Member Functions | |
| GLWIcon (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f, GLTexture *texture=0) | |
| virtual | ~GLWIcon () |
| virtual void | draw () |
| virtual bool | initFromXML (XMLNode *node) |
| GLTexture * | getTexture () |
| void | setTexture (GLTexture *texture) |
| REGISTER_CLASS_HEADER (GLWIcon) | |
Protected Attributes | |
| GLTexture * | texture_ |
Definition at line 27 of file GLWIcon.h.
| GLWIcon::GLWIcon | ( | float | x = 0.0f, |
|
| float | y = 0.0f, |
|||
| float | w = 0.0f, |
|||
| float | h = 0.0f, |
|||
| GLTexture * | texture = 0 | |||
| ) |
| GLWIcon::~GLWIcon | ( | ) | [virtual] |
Definition at line 36 of file GLWIcon.cpp.
| void GLWIcon::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 40 of file GLWIcon.cpp.
References GLState::BLEND_ON, GLWidget::draw(), GLTexture::draw(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glVertex2f(), GLWidget::h_, texture_, GLState::TEXTURE_ON, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWIconButton::draw(), SettingsSubSelectDialogListItem::draw(), GLWIconListSaveItem::draw(), GLWIconListSubModItem::draw(), and GLWIconListModItem::draw().
| bool GLWIcon::initFromXML | ( | XMLNode * | node | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 63 of file GLWIcon.cpp.
References GLTexture::draw(), XMLNode::getContent(), S3D::getDataFile(), XMLNode::getNamedChild(), GL_CLAMP, GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, glTexParameteri(), GLWidget::initFromXML(), TextureStore::instance(), TextureStore::loadTexture(), LangStringUtil::strcmp(), and texture_.
| GLTexture* GLWIcon::getTexture | ( | ) | [inline] |
Definition at line 38 of file GLWIcon.h.
References texture_.
Referenced by RulesDialog::addIcon(), and GLWIconButton::getTexture().
| void GLWIcon::setTexture | ( | GLTexture * | texture | ) | [inline] |
Definition at line 39 of file GLWIcon.h.
References texture_.
Referenced by RulesDialog::addIcon(), GLWIconListModItem::GLWIconListModItem(), GLWIconListSaveItem::GLWIconListSaveItem(), GLWIconListSubModItem::GLWIconListSubModItem(), GLWIconButton::setTexture(), and SettingsSubSelectDialogListItem::SettingsSubSelectDialogListItem().
| GLWIcon::REGISTER_CLASS_HEADER | ( | GLWIcon | ) |
GLTexture* GLWIcon::texture_ [protected] |
Definition at line 43 of file GLWIcon.h.
Referenced by draw(), getTexture(), initFromXML(), and setTexture().
1.5.3