Changeset 7077 for code/branches/presentation3/src/modules/designtools
- Timestamp:
- Jun 2, 2010, 1:52:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/designtools/CreateStars.cc
r7039 r7077 34 34 #include "core/XMLPort.h" 35 35 #include "graphics/Billboard.h" 36 36 37 37 namespace orxonox 38 38 { … … 56 56 CreateStars::~CreateStars() 57 57 { 58 while( billboards_.size()!=0 ) 58 while( billboards_.size()!=0 ) 59 59 { 60 delete(billboards_.back());60 billboards_.back()->destroy(); 61 61 billboards_.pop_back(); 62 62 … … 69 69 { 70 70 71 for(int i=0; i < numStars_; i++) 71 for(int i=0; i < numStars_; i++) 72 72 { 73 73 Billboard* bb = new Billboard(this); … … 88 88 float teta; 89 89 90 while(1) 90 while(1) 91 91 { 92 92 phi = rnd(2*pi); … … 101 101 } 102 102 103 Vector3 CreateStars::PolarToCartesian(float phi, float teta, float radius) 103 Vector3 CreateStars::PolarToCartesian(float phi, float teta, float radius) 104 104 { 105 105 float x = radius * cos(phi) * sin(teta);
Note: See TracChangeset
for help on using the changeset viewer.