Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/heathaze/src/lib/graphics/effects/heat_haze_manager.cc @ 10214

Last change on this file since 10214 was 10214, checked in by snellen, 17 years ago

updated the HeatHazeManager class

File size: 1.6 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: Silvan Nellen
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "heat_haze_manager.h"
19#include "resource_shader.h"
20
21ObjectListDefinition(HeatHazeManager);
22
23
24/**
25 * the constructor
26 *
27*/
28HeatHazeManager::HeatHazeManager ()
29{
30  this->registerObject(this, HeatHazeManager::_objectList);
31}
32
33
34/**
35 * standard deconstructor
36*/
37HeatHazeManager::~HeatHazeManager ()
38{
39
40}
41
42
43/**
44 * initialise the heathaze manager
45*/
46void HeatHazeManager::init ()
47{
48  this->heatShader = ResourceShader( "shaders/heat_haze.vert", "shaders/heat_haze.frag");
49
50  this->heatShader.activateShader();
51  ParticlesShot = new Shader::Uniform(heatShader, "ParticlesShot");
52  FinalRender = new Shader::Uniform(heatShader, "FinalRender");
53  parameters = new Shader::Uniform(heatShader, "parameters");
54  this->heatShader.deactivateShader();
55
56}
57
58
59/**
60 * Get the mask of all heat particles
61*/
62void HeatHazeManager::acquireMask()
63{
64 for (ObjectList<HeatParticles>::const_iterator it = HeatParticles::objectList().begin();
65       it != HeatParticles::objectList().end();
66       ++it)
67     {
68     //TODO: Let all the HeatParticles draw the particles in a temporary buffer
69     }
70
71}
72
73/**
74 * Apply the disortion effect to the frame
75*/
76void HeatHazeManager::apply()
77{
78 
79}
Note: See TracBrowser for help on using the repository browser.