Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.cc @ 7519

Last change on this file since 7519 was 7519, checked in by hdavid, 19 years ago
File size: 1.5 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: hdavid, amaechler
13*/
14
15#include "volfog_effect.h"
16
17#include "util/loading/load_param.h"
18#include "util/loading/factory.h"
19
20#include "glincl.h"
21
22#include "shell_command.h"
23
24using namespace std;
25
26CREATE_FACTORY(VolFogEffect, CL_VOLFOG_EFFECT);
27
28VolFogEffect::VolFogEffect(const TiXmlElement* root)
29{
30  this->setClassID(CL_VOLFOG_EFFECT, "VolFogEffect");
31
32  if (root != NULL)
33    this->loadParams(root);
34 
35  this->activate();
36}
37
38
39VolFogEffect::~VolFogEffect()
40{
41  this->deactivate();
42}
43
44
45void VolFogEffect::loadParams(const TiXmlElement* root)
46{
47  WeatherEffect::loadParams(root);
48
49  LoadParam(root, "test", this, VolFogEffect, test);
50}
51
52void VolFogEffect::test(int t)
53{
54PRINTF(0)("test\n\n");
55}
56
57bool VolFogEffect::init()
58{}
59
60
61
62bool VolFogEffect::activate()
63{
64  PRINTF(0)("Activate VolFogEffect\n");
65}
66
67bool VolFogEffect::deactivate()
68{
69  PRINTF(0)("Deactivate VolFogEffect\n");
70}
71
72
73/**
74 * draws the effect, if needed
75 */
76void VolFogEffect::draw() const
77{
78  PRINTF(0)("DRAW VolFogEffect\n");
79}
80
81
82
83/**
84 * ticks the effect if there is any time dependancy
85 */
86void VolFogEffect::tick(float dt)       
87{
88  PRINTF(0)("TICK VolFogEffect\n");
89}
Note: See TracBrowser for help on using the repository browser.