Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Demo Class Reference

#include <Demo.h>

Inherits Scene.

Inheritance diagram for Demo:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Demo ()
virtual ~Demo ()
bool load (Application *parent)
bool unload ()
bool update ()
bool drawFrame ()

Protected Attributes

AVI avi
float timeStart
Music music

Detailed Description

Selectprofile.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 17 of file Demo.h.


Constructor & Destructor Documentation

Demo::Demo  ) 
 

Selectprofile.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 12 of file Demo.cpp.

Demo::~Demo  )  [virtual]
 

Definition at line 18 of file Demo.cpp.

References unload().

Here is the call graph for this function:


Member Function Documentation

bool Demo::drawFrame  )  [virtual]
 

glLoadIdentity(); glTranslatef(0.0f, 0.0f, -10.0f); glBegin(GL_QUADS); glTexCoord2f(1.0f, 1.0f); glVertex3f( 11.0f, 8.3f, -20.0f); glTexCoord2f(0.0f, 1.0f); glVertex3f(-11.0f, 8.3f, -20.0f); glTexCoord2f(0.0f, 0.0f); glVertex3f(-11.0f, -8.3f, -20.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f( 11.0f, -8.3f, -20.0f); glEnd();

Reimplemented from Scene.

Definition at line 112 of file Demo.cpp.

References avi, g_height, g_time, g_width, AVI::genTex(), Scene::m_loaded, and timeStart.

Here is the call graph for this function:

bool Demo::load Application parent  )  [virtual]
 

Reimplemented from Scene.

Definition at line 25 of file Demo.cpp.

References avi, g_drawConsole, g_selectedScene, g_showFPS, g_time, Music::load(), AVI::load(), LOG_SUCCESS, Scene::m_loaded, Scene::m_parent, music, SCENE_MENU, AVI::sethDC(), and timeStart.

Here is the call graph for this function:

bool Demo::unload  )  [virtual]
 

glDisable(GL_TEXTURE_2D); m_parent->renderer->resetToDefaults(); m_parent->renderer->apply();

Reimplemented from Scene.

Definition at line 59 of file Demo.cpp.

References avi, LOG_SUCCESS, Scene::m_loaded, music, Music::stop(), AVI::unload(), and Music::unload().

Referenced by ~Demo().

Here is the call graph for this function:

bool Demo::update  )  [virtual]
 

Reimplemented from Scene.

Definition at line 80 of file Demo.cpp.

References avi, g_frameTime, g_selectedScene, g_time, AVI::isDone(), Application::keys, Mouse::left, Scene::m_loaded, Scene::m_parent, Application::mouse, music, Music::play(), Mouse::right, SCENE_MENU, timeStart, and AVI::update().

Here is the call graph for this function:


Member Data Documentation

AVI Demo::avi [protected]
 

Definition at line 28 of file Demo.h.

Referenced by drawFrame(), load(), unload(), and update().

Music Demo::music [protected]
 

Definition at line 30 of file Demo.h.

Referenced by load(), unload(), and update().

float Demo::timeStart [protected]
 

Definition at line 29 of file Demo.h.

Referenced by drawFrame(), load(), and update().


Generated on Sun Jun 5 15:49:28 2005 for Defacto by  doxygen 1.4.3