Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8427 was 6815, checked in by bensch, 19 years ago

orxonox/trunk: merged branches/network back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6774:HEAD

no conflicts…
thats what i call orthogonal work

File size: 762 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.
14class GraphicsEffect : public BaseObject
15{
16  public:
17    GraphicsEffect(const TiXmlElement* root = NULL);
18    virtual ~GraphicsEffect();
19
20    virtual void loadParams(const TiXmlElement* root);
21
22    virtual bool init();
23
24    virtual bool activate() = 0;
25    virtual bool deactivate() = 0;
[6772]26
[6815]27    virtual void draw() const;
28    virtual void tick(float dt);
[6772]29
[6815]30    inline bool isActivated() const { return this->bActivated; }
[6772]31
[6815]32
[6772]33  protected:
34    bool              bActivated;
[6741]35};
36
37
38#endif /* _GRAPHICS_EFFECT */
Note: See TracBrowser for help on using the repository browser.