BackdropDialog Class Reference

#include <BackdropDialog.h>

Inheritance diagram for BackdropDialog:

GLWWindow GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void draw ()
void drawBackground ()
void drawLogo ()
void drawFooter ()
void capture ()

Static Public Member Functions

static BackdropDialoginstance ()

Protected Attributes

GLTexture backTex_
GLTexture logoTex_
GLTexture footerTex_
std::string lastMod_

Static Protected Attributes

static BackdropDialoginstance_ = 0

Private Member Functions

 BackdropDialog ()
virtual ~BackdropDialog ()


Detailed Description

Definition at line 27 of file BackdropDialog.h.


Constructor & Destructor Documentation

BackdropDialog::BackdropDialog (  )  [private]

Definition at line 40 of file BackdropDialog.cpp.

References GLWWindow::windowLevel_.

BackdropDialog::~BackdropDialog (  )  [private, virtual]

Definition at line 47 of file BackdropDialog.cpp.


Member Function Documentation

BackdropDialog * BackdropDialog::instance (  )  [static]

Definition at line 31 of file BackdropDialog.cpp.

References instance_.

Referenced by AnimatedBackdropDialog::draw(), ClientSaveScreenState::draw(), ProgressDialogSync::progressChange(), ClientWindowSetup::setupGameWindows(), ClientWindowSetup::setupStartWindows(), and ClientMain::startClient().

void BackdropDialog::draw (  )  [virtual]

Reimplemented from GLWWindow.

Definition at line 51 of file BackdropDialog.cpp.

References drawBackground(), drawFooter(), and drawLogo().

Referenced by ProgressDialogSync::progressChange().

void BackdropDialog::drawBackground (  ) 

Definition at line 58 of file BackdropDialog.cpp.

References backTex_, GLTexture::create(), Image::createResize(), GLState::DEPTH_OFF, GLTexture::draw(), GLViewPort::getActualHeight(), GLViewPort::getActualWidth(), S3D::getDataFile(), GLViewPort::getHeight(), ImageHandle::getHeight(), GLViewPort::getWidth(), ImageHandle::getWidth(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glTexCoord2f(), glVertex2f(), ImageFactory::loadImageHandle(), and GLState::TEXTURE_ON.

Referenced by draw().

void BackdropDialog::drawLogo (  ) 

Definition at line 99 of file BackdropDialog.cpp.

References GLState::BLEND_ON, GLTexture::create(), GLState::DEPTH_OFF, GLTexture::draw(), S3D::getDataFile(), S3D::getDataFileMod(), GLViewPort::getHeight(), GLViewPort::getWidth(), GL_QUADS, glBegin(), glColor3f(), glEnd(), glPopMatrix(), glPushMatrix(), glTexCoord2f(), glTranslatef(), glVertex2f(), lastMod_, ImageFactory::loadImageHandle(), logoTex_, and GLState::TEXTURE_ON.

Referenced by draw(), and AnimatedBackdropDialog::draw().

void BackdropDialog::drawFooter (  ) 

Definition at line 141 of file BackdropDialog.cpp.

References GLState::BLEND_ON, GLTexture::create(), GLState::DEPTH_OFF, GLTexture::draw(), footerTex_, S3D::getDataFile(), GLViewPort::getHeight(), GLViewPort::getWidth(), GL_QUADS, glBegin(), glColor4f(), glEnd(), glPopMatrix(), glPushMatrix(), glTexCoord2f(), glTranslatef(), glVertex2f(), ImageFactory::loadAlphaImageHandle(), and GLState::TEXTURE_ON.

Referenced by draw(), and AnimatedBackdropDialog::draw().

void BackdropDialog::capture (  ) 

Definition at line 181 of file BackdropDialog.cpp.

References backTex_, ImageFactory::createBlank(), GLViewPort::getActualHeight(), GLViewPort::getActualWidth(), ImageHandle::getBits(), GLTexture::getHeight(), GLTexture::getTexName(), GLTexture::getWidth(), GL_PACK_ALIGNMENT, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_RGB, GL_UNSIGNED_BYTE, glPixelStorei(), glRasterPos2i(), glReadPixels(), OptionsDisplay::instance(), and GLTexture::replace().

Referenced by ClientSaveScreenState::draw(), and ClientMain::startClient().


Member Data Documentation

BackdropDialog * BackdropDialog::instance_ = 0 [static, protected]

Definition at line 40 of file BackdropDialog.h.

Referenced by instance().

GLTexture BackdropDialog::backTex_ [protected]

Definition at line 41 of file BackdropDialog.h.

Referenced by capture(), and drawBackground().

GLTexture BackdropDialog::logoTex_ [protected]

Definition at line 42 of file BackdropDialog.h.

Referenced by drawLogo().

GLTexture BackdropDialog::footerTex_ [protected]

Definition at line 42 of file BackdropDialog.h.

Referenced by drawFooter().

std::string BackdropDialog::lastMod_ [protected]

Definition at line 43 of file BackdropDialog.h.

Referenced by drawLogo().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:00 2009 for Scorched3D by  doxygen 1.5.3