Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/graphics/effects/graphics_effect.cc @ 6755

Last change on this file since 6755 was 6741, checked in by patrick, 18 years ago

network: graphical effects structure

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   co-programmer: ...
16*/
17
18#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS
19
20
21#include "graphics_effect.h"
22
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
38  if (root != NULL)
39    this->loadParams(root);
40}
41
42
43/**
44 *  destroys a GraphicsEffect
45 */
46GraphicsEffect::~GraphicsEffect()
47{}
48
49
50/**
51 * @param root The XML-element to load the GraphicsEffect from
52 */
53void GraphicsEffect::loadParams(const TiXmlElement* root)
54{
55  BaseObject::loadParams(root);
56
57//   LoadParam(root, "diffuse-color", this, GraphicsEffect, setDiffuseColor)
58//       .describe("sets the diffuse color of the GraphicsEffect (red [0-1], green [0-1], blue [0-1])");
59
60}
61
62
63/**
64 *  initializes the graphics effect
65 */
66bool GraphicsEffect::init()
67{}
Note: See TracBrowser for help on using the repository browser.