Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/effects/graphics_effect.cc @ 6979

Last change on this file since 6979 was 6979, checked in by bensch, 18 years ago

orxonox/trunk: GraphicsEffects are BaseObject Lists now

File size: 1.3 KB
Line 
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 "graphics_engine.h"
23#include "load_param.h"
24
25
26using namespace std;
27
28
29
30/**
31 * @param root The XML-element to load the GraphicsEffect from
32
33  @todo what to do, if no GraphicsEffect-Slots are open anymore ???
34 */
35GraphicsEffect::GraphicsEffect(const TiXmlElement* root)
36{
37  this->setClassID(CL_GRAPHICS_EFFECT, "GraphicsEffect");
38  this->bActivated = false;
39}
40
41
42/**
43 *  destroys a GraphicsEffect
44 */
45GraphicsEffect::~GraphicsEffect()
46{
47
48}
49
50
51/**
52 * @param root The XML-element to load the GraphicsEffect from
53 */
54void GraphicsEffect::loadParams(const TiXmlElement* root)
55{
56  BaseObject::loadParams(root);
57}
58
59
60/**
61 *  initializes the graphics effect
62 */
63bool GraphicsEffect::init()
64{}
65
66
67
68/**
69 * draws the effect, if needed
70 */
71void GraphicsEffect::draw() const
72{}
73
74
75
76/**
77 * ticks the effect if there is any time dependancy
78 */
79void GraphicsEffect::tick(float dt)
80{}
Note: See TracBrowser for help on using the repository browser.