Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/volumetric_fog/src/world_entities/weather_effects/volfog_effect.cc @ 9935

Last change on this file since 9935 was 9935, checked in by hdavid, 17 years ago

branches/volumetric_gof: empty base files

File size: 1.5 KB
Line 
1/*
2  orxonox - the future of 3D-vertical-scrollers
3
4  Copyright (C) 2006 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
13*/
14
15#include "volfog_effect.h"
16
17#include "util/loading/load_param.h"
18#include "util/loading/factory.h"
19
20#include "p_node.h"
21#include "state.h"
22
23#include "glincl.h"
24#include "debug.h"
25
26
27#define GLX_GLXEXT_PROTOTYPES
28
29#include "class_id_DEPRECATED.h"
30ObjectListDefinitionID(VolFogEffect, CL_VOLFOG_EFFECT);
31CREATE_FACTORY(VolFogEffect);
32
33
34
35VolFogEffect::VolFogEffect(const TiXmlElement* root) {
36  this->registerObject(this, VolFogEffect::_objectList);
37
38    if (root != NULL)
39        this->loadParams(root);
40
41    // Initialize Effect
42    this->init();
43
44    // Activate Effect
45    if(fogActivate)
46      this->activate();
47}
48
49
50VolFogEffect::~VolFogEffect() {
51    this->deactivate();
52}
53
54void VolFogEffect::loadParams(const TiXmlElement* root) {
55    WeatherEffect::loadParams(root);
56}
57
58void VolFogEffect::init() {
59    PRINTF(0)("Initalize VolFogEffect\n");
60   
61    fogActivate = false;
62
63   
64}
65
66
67void VolFogEffect::activate() {
68    PRINTF(0)("Activating VolFogEffect\n");
69}
70
71void VolFogEffect::deactivate() {
72    PRINTF(0)("Deactivating VolFogEffect\n");
73}
74
75
76/**
77* draws the effect
78*/
79void VolFogEffect::draw() const {
80
81}
82
83
84/**
85* ticks the effect if there is any time dependancy
86*/
87void VolFogEffect::tick(float dt) {}
Note: See TracBrowser for help on using the repository browser.