| 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 |  | 
|---|
| 20 | #include "graphics_effect.h" | 
|---|
| 21 |  | 
|---|
| 22 | #include "util/loading/load_param.h" | 
|---|
| 23 |  | 
|---|
| 24 | ObjectListDefinition(GraphicsEffect); | 
|---|
| 25 |  | 
|---|
| 26 | /** | 
|---|
| 27 |  * @param root The XML-element to load the GraphicsEffect from | 
|---|
| 28 |  | 
|---|
| 29 |   @todo what to do, if no GraphicsEffect-Slots are open anymore ??? | 
|---|
| 30 |  */ | 
|---|
| 31 | GraphicsEffect::GraphicsEffect(const TiXmlElement* root) { | 
|---|
| 32 |   this->registerObject(this, GraphicsEffect::_objectList); | 
|---|
| 33 |     this->bActivated = false; | 
|---|
| 34 | } | 
|---|
| 35 |  | 
|---|
| 36 |  | 
|---|
| 37 | /** | 
|---|
| 38 |  *  destroys a GraphicsEffect | 
|---|
| 39 |  */ | 
|---|
| 40 | GraphicsEffect::~GraphicsEffect() { | 
|---|
| 41 | } | 
|---|
| 42 |  | 
|---|
| 43 |  | 
|---|
| 44 | /** | 
|---|
| 45 |  * @param root The XML-element to load the GraphicsEffect from | 
|---|
| 46 |  */ | 
|---|
| 47 | void GraphicsEffect::loadParams(const TiXmlElement* root) { | 
|---|
| 48 |     BaseObject::loadParams(root); | 
|---|
| 49 | } | 
|---|
| 50 |  | 
|---|
| 51 |  | 
|---|
| 52 | /** | 
|---|
| 53 |  *  initializes the graphics effect | 
|---|
| 54 |  */ | 
|---|
| 55 | void GraphicsEffect::init() {} | 
|---|
| 56 |  | 
|---|
| 57 |  | 
|---|
| 58 |  | 
|---|
| 59 | /** | 
|---|
| 60 |  * draws the effect, if needed | 
|---|
| 61 |  */ | 
|---|
| 62 | void GraphicsEffect::draw() const {} | 
|---|
| 63 |  | 
|---|
| 64 |  | 
|---|
| 65 |  | 
|---|
| 66 | /** | 
|---|
| 67 |  * ticks the effect if there is any time dependancy | 
|---|
| 68 |  */ | 
|---|
| 69 | void GraphicsEffect::tick(float dt) {} | 
|---|