1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2006 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: hdavid |
---|
13 | */ |
---|
14 | |
---|
15 | #include "volfog_effect.h" |
---|
16 | |
---|
17 | #include "util/loading/load_param.h" |
---|
18 | #include "util/loading/factory.h" |
---|
19 | |
---|
20 | #include "p_node.h" |
---|
21 | #include "state.h" |
---|
22 | |
---|
23 | #include "glincl.h" |
---|
24 | #include "debug.h" |
---|
25 | |
---|
26 | |
---|
27 | #define GLX_GLXEXT_PROTOTYPES |
---|
28 | |
---|
29 | #include "class_id_DEPRECATED.h" |
---|
30 | ObjectListDefinitionID(VolFogEffect, CL_VOLFOG_EFFECT); |
---|
31 | CREATE_FACTORY(VolFogEffect); |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | VolFogEffect::VolFogEffect(const TiXmlElement* root) { |
---|
36 | this->registerObject(this, VolFogEffect::_objectList); |
---|
37 | |
---|
38 | if (root != NULL) |
---|
39 | this->loadParams(root); |
---|
40 | |
---|
41 | // Initialize Effect |
---|
42 | this->init(); |
---|
43 | |
---|
44 | // Activate Effect |
---|
45 | if(fogActivate) |
---|
46 | this->activate(); |
---|
47 | } |
---|
48 | |
---|
49 | |
---|
50 | VolFogEffect::~VolFogEffect() { |
---|
51 | this->deactivate(); |
---|
52 | } |
---|
53 | |
---|
54 | void VolFogEffect::loadParams(const TiXmlElement* root) { |
---|
55 | WeatherEffect::loadParams(root); |
---|
56 | } |
---|
57 | |
---|
58 | void VolFogEffect::init() { |
---|
59 | PRINTF(0)("Initalize VolFogEffect\n"); |
---|
60 | |
---|
61 | fogActivate = false; |
---|
62 | |
---|
63 | |
---|
64 | } |
---|
65 | |
---|
66 | |
---|
67 | void VolFogEffect::activate() { |
---|
68 | PRINTF(0)("Activating VolFogEffect\n"); |
---|
69 | } |
---|
70 | |
---|
71 | void VolFogEffect::deactivate() { |
---|
72 | PRINTF(0)("Deactivating VolFogEffect\n"); |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | /** |
---|
77 | * draws the effect |
---|
78 | */ |
---|
79 | void VolFogEffect::draw() const { |
---|
80 | |
---|
81 | } |
---|
82 | |
---|
83 | |
---|
84 | /** |
---|
85 | * ticks the effect if there is any time dependancy |
---|
86 | */ |
---|
87 | void VolFogEffect::tick(float dt) {} |
---|