- Timestamp:
- May 30, 2010, 10:21:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/designtools/CreateStars.cc
r7022 r7028 29 29 #include "CreateStars.h" 30 30 31 #include "core/ConsoleCommand.h" 31 #include <OgreVector3.h> 32 32 33 #include "core/CoreIncludes.h" 33 #include "core/ConfigValueIncludes.h"34 #include "core/ScopedSingletonManager.h"35 #include "core/BaseObject.h"36 37 38 34 #include "core/XMLPort.h" 39 40 35 #include "graphics/Billboard.h" 41 42 #include <OgreVector3.h>43 #include "util/Math.h"44 36 45 37 namespace orxonox 46 38 { 47 48 39 CreateFactory(CreateStars); 49 40 41 static const float pi = 3.14159265359f; 42 50 43 CreateStars::CreateStars(BaseObject* creator) : BaseObject(creator) 51 52 44 { 53 45 RegisterObject(CreateStars); 54 46 this->material_ = "Examples/Flare"; 55 this->alpha_ = 0.7 ;56 this->alphaDiff_ = 0.5 ;57 this->radiusDiff_ = 0.9 ;47 this->alpha_ = 0.7f; 48 this->alphaDiff_ = 0.5f; 49 this->radiusDiff_ = 0.9f; 58 50 this->colour_.r = 1; 59 51 this->colour_.g = 1; 60 52 this->colour_.b = 1; 61 this->colourDiff_ = 0.1 ;53 this->colourDiff_ = 0.1f; 62 54 } 63 55 … … 98 90 while(1) 99 91 { 100 phi = rnd(2* M_PI);101 teta = rnd( M_PI);92 phi = rnd(2*pi); 93 teta = rnd(pi); 102 94 float random = rnd(1); 103 95 if(sin(teta)>random) break;
Note: See TracChangeset
for help on using the changeset viewer.