Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/graphics_effect.h @ 10240

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 813 bytes
RevLine 
[6741]1/**
2 * @file graphics_effect.h
3 *  abstract type of graphical effects
4 */
5
6#ifndef _GRAPHICS_EFFECT
7#define _GRAPHICS_EFFECT
8
9#include "base_object.h"
10
11class TiXmlElement;
12
13//! A class that handles GraphicsEffects. The GraphicsEffectManager operates on this.
[8495]14class GraphicsEffect : public BaseObject {
[9715]15  ObjectListDeclaration(GraphicsEffect);
[9685]16  public:
[6741]17    GraphicsEffect(const TiXmlElement* root = NULL);
18    virtual ~GraphicsEffect();
19
20    virtual void loadParams(const TiXmlElement* root);
21
[8495]22    virtual void init();
[6741]23
[8495]24    virtual void activate() = 0;
25    virtual void deactivate() = 0;
[6772]26
[6815]27    virtual void draw() const;
28    virtual void tick(float dt);
[6772]29
[8495]30    inline bool isActivated() const {
31        return this->bActivated;
32    }
[6772]33
[6815]34
[8495]35protected:
[6772]36    bool              bActivated;
[6741]37};
38
39
40#endif /* _GRAPHICS_EFFECT */
Note: See TracBrowser for help on using the repository browser.