aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/extantz/CDemo.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-20 03:43:55 +1000
committerDavid Walter Seikel2013-01-20 03:43:55 +1000
commit59089447482b286d26516fe12ac4e66344ab8c04 (patch)
tree5d2183dddaaac4f62e6f671ed43d5428c1f65753 /ClientHamr/extantz/CDemo.h
parentUse ambient light instead of material light. (diff)
downloadSledjHamr-59089447482b286d26516fe12ac4e66344ab8c04.zip
SledjHamr-59089447482b286d26516fe12ac4e66344ab8c04.tar.gz
SledjHamr-59089447482b286d26516fe12ac4e66344ab8c04.tar.bz2
SledjHamr-59089447482b286d26516fe12ac4e66344ab8c04.tar.xz
Pull in the Irrlicht CDemo code for the next stage of development.
Diffstat (limited to 'ClientHamr/extantz/CDemo.h')
-rw-r--r--ClientHamr/extantz/CDemo.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/ClientHamr/extantz/CDemo.h b/ClientHamr/extantz/CDemo.h
new file mode 100644
index 0000000..44ba346
--- /dev/null
+++ b/ClientHamr/extantz/CDemo.h
@@ -0,0 +1,63 @@
1// This is a Demo of the Irrlicht Engine (c) 2006 by N.Gebhardt.
2// This file is not documented.
3
4#ifndef __C_DEMO_H_INCLUDED__
5#define __C_DEMO_H_INCLUDED__
6
7#ifdef _IRR_WINDOWS_
8#include <windows.h>
9#endif
10
11const int CAMERA_COUNT = 7;
12
13class CDemo : public IEventReceiver
14{
15public:
16
17 CDemo(GLData *gld, bool additive);
18
19 ~CDemo();
20
21 void setup(GLData *gld);
22 void preDraw(GLData *gld, u32 now);
23
24 virtual bool OnEvent(const SEvent& event);
25
26private:
27
28 void createLoadingScreen();
29 void loadSceneData();
30 void switchToNextScene();
31 void shoot();
32 void createParticleImpacts();
33
34 bool additive;
35 IrrlichtDevice *device;
36
37 struct SParticleImpact
38 {
39 u32 when;
40 core::vector3df pos;
41 core::vector3df outVector;
42 };
43
44 int currentScene;
45
46 scene::IQ3LevelMesh* quakeLevelMesh;
47 scene::ISceneNode* quakeLevelNode;
48 scene::ISceneNode* skyboxNode;
49 scene::IAnimatedMeshSceneNode* model1;
50 scene::IAnimatedMeshSceneNode* model2;
51 scene::IParticleSystemSceneNode* campFire;
52
53 scene::IMetaTriangleSelector* metaSelector;
54 scene::ITriangleSelector* mapSelector;
55
56 s32 sceneStartTime;
57 s32 timeForThisScene;
58
59 core::array<SParticleImpact> Impacts;
60};
61
62#endif
63