Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/graphics/effects/lense_flare.cc @ 6781

Last change on this file since 6781 was 6779, checked in by patrick, 19 years ago

network: adding a billboard

File size: 1.7 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*/
16
17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GRAPHICS
18
19#include "lense_flare.h"
20
21#include "load_param.h"
22#include "factory.h"
23
24#include "glincl.h"
25#include "texture.h"
26
27
28using namespace std;
29
30CREATE_FACTORY(LenseFlare, CL_LENSE_FLARE);
31
32
33
34/**
35 *  default constructor
36 * @param root The XML-element to load the LenseFlare from
37 */
38 LenseFlare::LenseFlare(const TiXmlElement* root)
39{
40
41  if (root != NULL)
42    this->loadParams(root);
43}
44
45
46/**
47 *  destroys a LenseFlare
48 */
49LenseFlare::~LenseFlare()
50{}
51
52
53/**
54 * @param root The XML-element to load the LenseFlare from
55 */
56void LenseFlare::loadParams(const TiXmlElement* root)
57{
58  GraphicsEffect::loadParams(root);
59
60    LoadParam(root, "add-flare-texture", this, LenseFlare, addFlare)
61        .describe("adds a lensflare texture to the engine");
62
63}
64
65
66/**
67 * initializes the fog effect
68 */
69bool LenseFlare::init()
70{
71
72}
73
74
75/**
76 * activates the fog effect
77 */
78bool LenseFlare::activate()
79{
80
81}
82
83
84/**
85 * deactivates the fog effect
86 */
87bool LenseFlare::deactivate()
88{
89
90}
91
92
93/**
94 * converts a gl mode char to a GLint
95 * @param mode the mode character
96 */
97GLint LenseFlare::charToFogMode(const char* mode)
98{}
99
100
101/**
102 * adds a texture flare
103 * @param textureName the name of the flare texture
104 */
105void addFlare(const char* textureName)
106{
107  Texture* texture = new Texture (textureName, GL_TEXTURE);
108
109
110}
111
112
Note: See TracBrowser for help on using the repository browser.