1 | |
---|
2 | |
---|
3 | /* |
---|
4 | orxonox - the future of 3D-vertical-scrollers |
---|
5 | |
---|
6 | Copyright (C) 2004 orx |
---|
7 | |
---|
8 | This program is free software; you can redistribute it and/or modify |
---|
9 | it under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation; either version 2, or (at your option) |
---|
11 | any later version. |
---|
12 | |
---|
13 | ### File Specific: |
---|
14 | main-programmer: Patrick Boenzli |
---|
15 | */ |
---|
16 | |
---|
17 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS |
---|
18 | |
---|
19 | #include "lense_flare.h" |
---|
20 | |
---|
21 | #include "load_param.h" |
---|
22 | #include "factory.h" |
---|
23 | |
---|
24 | #include "glincl.h" |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | using namespace std; |
---|
29 | |
---|
30 | CREATE_FACTORY(LenseFlare, CL_LENSE_FLARE); |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | /** |
---|
35 | * default constructor |
---|
36 | * @param root The XML-element to load the LenseFlare from |
---|
37 | */ |
---|
38 | LenseFlare::LenseFlare(const TiXmlElement* root) |
---|
39 | { |
---|
40 | |
---|
41 | if (root != NULL) |
---|
42 | this->loadParams(root); |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | /** |
---|
47 | * destroys a LenseFlare |
---|
48 | */ |
---|
49 | LenseFlare::~LenseFlare() |
---|
50 | {} |
---|
51 | |
---|
52 | |
---|
53 | /** |
---|
54 | * @param root The XML-element to load the LenseFlare from |
---|
55 | */ |
---|
56 | void LenseFlare::loadParams(const TiXmlElement* root) |
---|
57 | { |
---|
58 | GraphicsEffect::loadParams(root); |
---|
59 | |
---|
60 | // LoadParam(root, "fog-effect", this, LenseFlare, setFogMode) |
---|
61 | // .describe("sets the the fog mode {GL_LINEAR, GL_EXP, GL_EXP2}"); |
---|
62 | |
---|
63 | } |
---|
64 | |
---|
65 | |
---|
66 | /** |
---|
67 | * initializes the fog effect |
---|
68 | */ |
---|
69 | bool LenseFlare::init() |
---|
70 | { |
---|
71 | |
---|
72 | } |
---|
73 | |
---|
74 | |
---|
75 | /** |
---|
76 | * activates the fog effect |
---|
77 | */ |
---|
78 | bool LenseFlare::activate() |
---|
79 | { |
---|
80 | |
---|
81 | } |
---|
82 | |
---|
83 | |
---|
84 | /** |
---|
85 | * deactivates the fog effect |
---|
86 | */ |
---|
87 | bool LenseFlare::deactivate() |
---|
88 | { |
---|
89 | |
---|
90 | } |
---|
91 | |
---|
92 | |
---|
93 | /** |
---|
94 | * converts a gl mode char to a GLint |
---|
95 | * @param mode the mode character |
---|
96 | */ |
---|
97 | GLint LenseFlare::charToFogMode(const char* mode) |
---|
98 | {} |
---|
99 | |
---|