SkyParticles.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 
00012 #ifndef GRAPHICS_SKY_PARTICLES_H_
00013 #define GRAPHICS_SKY_PARTICLES_H_
00014 
00015 #include <LinearMath/btVector3.h>
00016 #include <libtrack/Texture.h>
00017 #include "../Engine/CarCamera.h"
00018 
00019 namespace Graphics
00020 {
00021 
00023 class SkyParticles
00024 {
00025     public:
00027         SkyParticles();
00032         void update(unsigned milliseconds_elapsed);
00034         void draw(const Engine::CarCamera & camera);
00035     private:
00036         const static int m_num_particles = 1024;
00038         btVector3 particles[m_num_particles];
00040         Track::Texture * m_texture;
00042         float phase;
00043 };
00044 
00045 } // namespace Graphics
00046 
00047 #endif // GRAPHICS_SKY_PARTICLES_H_

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.