/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Patrick Boenzli */ #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS #include "graphics_effect.h" #include "graphics_engine.h" #include "load_param.h" using namespace std; /** * @param root The XML-element to load the GraphicsEffect from @todo what to do, if no GraphicsEffect-Slots are open anymore ??? */ GraphicsEffect::GraphicsEffect(const TiXmlElement* root) { this->bActivated = false; this->bActivated = GraphicsEngine::getInstance()->loadGraphicsEffect(this); if (root != NULL) this->loadParams(root); } /** * destroys a GraphicsEffect */ GraphicsEffect::~GraphicsEffect() { if( this->bActivated) GraphicsEngine::getInstance()->unloadGraphicsEffect(this); } /** * @param root The XML-element to load the GraphicsEffect from */ void GraphicsEffect::loadParams(const TiXmlElement* root) { BaseObject::loadParams(root); // LoadParam(root, "diffuse-color", this, GraphicsEffect, setDiffuseColor) // .describe("sets the diffuse color of the GraphicsEffect (red [0-1], green [0-1], blue [0-1])"); } /** * initializes the graphics effect */ bool GraphicsEffect::init() {}