GLWBitmap Class Reference

#include <GLWBitmap.h>

Inheritance diagram for GLWBitmap:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWBitmap (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f, Image *bitmap=0)
virtual ~GLWBitmap ()
virtual void draw ()
virtual bool initFromXML (XMLNode *node)
 REGISTER_CLASS_HEADER (GLWBitmap)

Protected Attributes

Imagebitmap_


Detailed Description

Definition at line 27 of file GLWBitmap.h.


Constructor & Destructor Documentation

GLWBitmap::GLWBitmap ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f,
Image bitmap = 0 
)

Definition at line 27 of file GLWBitmap.cpp.

GLWBitmap::~GLWBitmap (  )  [virtual]

Definition at line 33 of file GLWBitmap.cpp.


Member Function Documentation

void GLWBitmap::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 37 of file GLWBitmap.cpp.

References bitmap_, GLState::BLEND_OFF, GLWidget::draw(), Image::getBits(), Image::getHeight(), Image::getWidth(), GL_PACK_ALIGNMENT, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_RGB, GL_UNSIGNED_BYTE, glDrawPixels(), glPixelStorei(), glRasterPos2f(), GLWidget::h_, int(), MIN, GLState::TEXTURE_OFF, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

bool GLWBitmap::initFromXML ( XMLNode node  )  [virtual]

Reimplemented from GLWidget.

Definition at line 68 of file GLWBitmap.cpp.

References GLWidget::initFromXML().

GLWBitmap::REGISTER_CLASS_HEADER ( GLWBitmap   ) 


Member Data Documentation

Image* GLWBitmap::bitmap_ [protected]

Definition at line 40 of file GLWBitmap.h.

Referenced by draw().


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