GLWIcon Class Reference

#include <GLWIcon.h>

Inheritance diagram for GLWIcon:

GLWidget MetaClass

List of all members.

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)
GLTexturegetTexture ()
void setTexture (GLTexture *texture)

Protected Attributes


Detailed Description

Definition at line 27 of file GLWIcon.h.

Constructor & Destructor Documentation

GLWIcon::GLWIcon ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f,
GLTexture texture = 0 

Definition at line 29 of file GLWIcon.cpp.

References GLWidget::tooltipTransparent_.

GLWIcon::~GLWIcon (  )  [virtual]

Definition at line 36 of file GLWIcon.cpp.

Member Function Documentation

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().


Member Data Documentation

GLTexture* GLWIcon::texture_ [protected]

Definition at line 43 of file GLWIcon.h.

Referenced by draw(), getTexture(), initFromXML(), and setTexture().

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