- Timestamp:
- Nov 2, 2005, 9:01:12 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Makefile.in
r5463 r5465 366 366 esac; \ 367 367 done; \ 368 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/Makefile'; \368 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ 369 369 cd $(top_srcdir) && \ 370 $(AUTOMAKE) -- gnusrc/Makefile370 $(AUTOMAKE) --foreign src/Makefile 371 371 .PRECIOUS: Makefile 372 372 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/Makefile.in
r5463 r5465 275 275 esac; \ 276 276 done; \ 277 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/Makefile'; \277 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/Makefile'; \ 278 278 cd $(top_srcdir) && \ 279 $(AUTOMAKE) -- gnusrc/lib/Makefile279 $(AUTOMAKE) --foreign src/lib/Makefile 280 280 .PRECIOUS: Makefile 281 281 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/collision_detection/Makefile.in
r5463 r5465 224 224 esac; \ 225 225 done; \ 226 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/collision_detection/Makefile'; \226 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/collision_detection/Makefile'; \ 227 227 cd $(top_srcdir) && \ 228 $(AUTOMAKE) -- gnusrc/lib/collision_detection/Makefile228 $(AUTOMAKE) --foreign src/lib/collision_detection/Makefile 229 229 .PRECIOUS: Makefile 230 230 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/event/Makefile.in
r5463 r5465 212 212 esac; \ 213 213 done; \ 214 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/event/Makefile'; \214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/event/Makefile'; \ 215 215 cd $(top_srcdir) && \ 216 $(AUTOMAKE) -- gnusrc/lib/event/Makefile216 $(AUTOMAKE) --foreign src/lib/event/Makefile 217 217 .PRECIOUS: Makefile 218 218 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/graphics/Makefile.in
r5463 r5465 230 230 esac; \ 231 231 done; \ 232 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile'; \232 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/Makefile'; \ 233 233 cd $(top_srcdir) && \ 234 $(AUTOMAKE) -- gnusrc/lib/graphics/Makefile234 $(AUTOMAKE) --foreign src/lib/graphics/Makefile 235 235 .PRECIOUS: Makefile 236 236 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/graphics/importer/Makefile.in
r5463 r5465 217 217 esac; \ 218 218 done; \ 219 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile'; \219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile'; \ 220 220 cd $(top_srcdir) && \ 221 $(AUTOMAKE) -- gnusrc/lib/graphics/importer/Makefile221 $(AUTOMAKE) --foreign src/lib/graphics/importer/Makefile 222 222 .PRECIOUS: Makefile 223 223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/graphics/spatial_separation/Makefile.in
r5463 r5465 205 205 esac; \ 206 206 done; \ 207 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/graphics/spatial_separation/Makefile'; \207 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/graphics/spatial_separation/Makefile'; \ 208 208 cd $(top_srcdir) && \ 209 $(AUTOMAKE) -- gnusrc/lib/graphics/spatial_separation/Makefile209 $(AUTOMAKE) --foreign src/lib/graphics/spatial_separation/Makefile 210 210 .PRECIOUS: Makefile 211 211 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/gui/Makefile.in
r5463 r5465 179 179 esac; \ 180 180 done; \ 181 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/Makefile'; \181 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/Makefile'; \ 182 182 cd $(top_srcdir) && \ 183 $(AUTOMAKE) -- gnusrc/lib/gui/Makefile183 $(AUTOMAKE) --foreign src/lib/gui/Makefile 184 184 .PRECIOUS: Makefile 185 185 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/gui/gl_gui/Makefile.in
r5463 r5465 238 238 esac; \ 239 239 done; \ 240 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/gl_gui/Makefile'; \240 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/gl_gui/Makefile'; \ 241 241 cd $(top_srcdir) && \ 242 $(AUTOMAKE) -- gnusrc/lib/gui/gl_gui/Makefile242 $(AUTOMAKE) --foreign src/lib/gui/gl_gui/Makefile 243 243 .PRECIOUS: Makefile 244 244 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/gui/gtk_gui/Makefile.in
r5463 r5465 240 240 esac; \ 241 241 done; \ 242 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/gui/gtk_gui/Makefile'; \242 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/gui/gtk_gui/Makefile'; \ 243 243 cd $(top_srcdir) && \ 244 $(AUTOMAKE) -- gnusrc/lib/gui/gtk_gui/Makefile244 $(AUTOMAKE) --foreign src/lib/gui/gtk_gui/Makefile 245 245 .PRECIOUS: Makefile 246 246 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/particles/Makefile.in
r5463 r5465 209 209 esac; \ 210 210 done; \ 211 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/particles/Makefile'; \211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/particles/Makefile'; \ 212 212 cd $(top_srcdir) && \ 213 $(AUTOMAKE) -- gnusrc/lib/particles/Makefile213 $(AUTOMAKE) --foreign src/lib/particles/Makefile 214 214 .PRECIOUS: Makefile 215 215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/physics/Makefile.in
r5463 r5465 218 218 esac; \ 219 219 done; \ 220 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/physics/Makefile'; \220 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/physics/Makefile'; \ 221 221 cd $(top_srcdir) && \ 222 $(AUTOMAKE) -- gnusrc/lib/physics/Makefile222 $(AUTOMAKE) --foreign src/lib/physics/Makefile 223 223 .PRECIOUS: Makefile 224 224 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/shell/Makefile.in
r5463 r5465 212 212 esac; \ 213 213 done; \ 214 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/shell/Makefile'; \214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/shell/Makefile'; \ 215 215 cd $(top_srcdir) && \ 216 $(AUTOMAKE) -- gnusrc/lib/shell/Makefile216 $(AUTOMAKE) --foreign src/lib/shell/Makefile 217 217 .PRECIOUS: Makefile 218 218 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/sound/Makefile.in
r5463 r5465 209 209 esac; \ 210 210 done; \ 211 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/sound/Makefile'; \211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/sound/Makefile'; \ 212 212 cd $(top_srcdir) && \ 213 $(AUTOMAKE) -- gnusrc/lib/sound/Makefile213 $(AUTOMAKE) --foreign src/lib/sound/Makefile 214 214 .PRECIOUS: Makefile 215 215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/lib/tinyxml/Makefile.in
r5463 r5465 204 204 esac; \ 205 205 done; \ 206 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/lib/tinyxml/Makefile'; \206 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/lib/tinyxml/Makefile'; \ 207 207 cd $(top_srcdir) && \ 208 $(AUTOMAKE) -- gnusrc/lib/tinyxml/Makefile208 $(AUTOMAKE) --foreign src/lib/tinyxml/Makefile 209 209 .PRECIOUS: Makefile 210 210 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/subprojects/Makefile.in
r5463 r5465 186 186 esac; \ 187 187 done; \ 188 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/Makefile'; \188 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/Makefile'; \ 189 189 cd $(top_srcdir) && \ 190 $(AUTOMAKE) -- gnusrc/subprojects/Makefile190 $(AUTOMAKE) --foreign src/subprojects/Makefile 191 191 .PRECIOUS: Makefile 192 192 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/subprojects/collision_detection/Makefile.in
r5463 r5465 276 276 esac; \ 277 277 done; \ 278 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/collision_detection/Makefile'; \278 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/collision_detection/Makefile'; \ 279 279 cd $(top_srcdir) && \ 280 $(AUTOMAKE) -- gnusrc/subprojects/collision_detection/Makefile280 $(AUTOMAKE) --foreign src/subprojects/collision_detection/Makefile 281 281 .PRECIOUS: Makefile 282 282 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/subprojects/importer/Makefile.in
r5463 r5465 245 245 esac; \ 246 246 done; \ 247 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/importer/Makefile'; \247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/importer/Makefile'; \ 248 248 cd $(top_srcdir) && \ 249 $(AUTOMAKE) -- gnusrc/subprojects/importer/Makefile249 $(AUTOMAKE) --foreign src/subprojects/importer/Makefile 250 250 .PRECIOUS: Makefile 251 251 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/subprojects/particles/Makefile.in
r5463 r5465 267 267 esac; \ 268 268 done; \ 269 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/particles/Makefile'; \269 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/particles/Makefile'; \ 270 270 cd $(top_srcdir) && \ 271 $(AUTOMAKE) -- gnusrc/subprojects/particles/Makefile271 $(AUTOMAKE) --foreign src/subprojects/particles/Makefile 272 272 .PRECIOUS: Makefile 273 273 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/subprojects/testmain/Makefile.in
r5463 r5465 196 196 esac; \ 197 197 done; \ 198 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/subprojects/testmain/Makefile'; \198 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/subprojects/testmain/Makefile'; \ 199 199 cd $(top_srcdir) && \ 200 $(AUTOMAKE) -- gnusrc/subprojects/testmain/Makefile200 $(AUTOMAKE) --foreign src/subprojects/testmain/Makefile 201 201 .PRECIOUS: Makefile 202 202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/util/Makefile.in
r5463 r5465 242 242 esac; \ 243 243 done; \ 244 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- gnusrc/util/Makefile'; \244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/util/Makefile'; \ 245 245 cd $(top_srcdir) && \ 246 $(AUTOMAKE) -- gnusrc/util/Makefile246 $(AUTOMAKE) --foreign src/util/Makefile 247 247 .PRECIOUS: Makefile 248 248 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
trunk/src/world_entities/terrain.cc
r5415 r5465 21 21 #include "factory.h" 22 22 #include "spatial_separation.h" 23 24 #include "resource_manager.h" 23 25 24 26 using namespace std; … … 78 80 if( this->ssp) 79 81 delete ssp; 82 if (this->vegetation) 83 { 84 ResourceManager::getInstance()->unload(this->vegetation); 85 } 80 86 } 81 87 … … 87 93 this->objectList = 0; 88 94 this->ssp = NULL; 95 this->vegetation = NULL; 89 96 } 90 97 … … 94 101 static_cast<WorldEntity*>(this)->loadParams(root); 95 102 103 LoadParam<Terrain>(root, "vegetation", this, &Terrain::loadVegetation) 104 .describe("the fileName of the vegetation, that should be loaded onto this terrain. (must be relative to the data-dir)") ; 105 96 106 //LoadParam<Terrain>(root, "DebugTerrain", ); 97 107 } 108 109 void Terrain::loadVegetation(const char* vegetationFile) 110 { 111 if (this->vegetation) 112 ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL); 113 if (vegetationFile != NULL) 114 { 115 PRINTF(4)("fetching %s\n", vegetationFile); 116 this->vegetation = (Model*)ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN); 117 } 118 else 119 this->vegetation = NULL; 120 } 121 122 98 123 99 124 void Terrain::draw () … … 114 139 else if (this->model) 115 140 this->model->draw(); 141 if (this->vegetation) 142 this->vegetation->draw(); 116 143 glPopMatrix(); 117 144 -
trunk/src/world_entities/terrain.h
r5405 r5465 33 33 void loadParams(const TiXmlElement* root); 34 34 35 void loadVegetation(const char* vegetationFile); 36 35 37 void buildDebugTerrain(DebugTerrain debugTerrain); 36 38 virtual void draw(); … … 40 42 41 43 private: 42 int objectList; 44 Model* vegetation; 45 int objectList; 43 46 }; 44 47 -
trunk/src/world_entities/weapons/laser.cc
r5458 r5465 51 51 this->emitter->setParent(this); 52 52 this->emitter->setSpread(M_PI, M_PI); 53 this->emitter->setEmissionRate( 50.0);53 this->emitter->setEmissionRate(300.0); 54 54 this->emitter->setEmissionVelocity(50.0); 55 55 } … … 83 83 Laser::explosionParticles->setName("LaserExplosionParticles"); 84 84 Laser::explosionParticles->setLifeSpan(.5, .3); 85 Laser::explosionParticles->setRadius(0.0, 5);86 Laser::explosionParticles->setRadius(.5, 10.0);85 Laser::explosionParticles->setRadius(0.0, 3.0); 86 Laser::explosionParticles->setRadius(.5, 6.0); 87 87 Laser::explosionParticles->setRadius(1.0, 3.0); 88 88 Laser::explosionParticles->setColor(0.0, 1,1,0,.9); -
trunk/src/world_entities/weapons/rocket.cc
r5456 r5465 97 97 if (unlikely(Rocket::explosionParticles == NULL)) 98 98 { 99 Rocket::explosionParticles = new ParticleSystem( 1000, PARTICLE_SPRITE);99 Rocket::explosionParticles = new ParticleSystem(200, PARTICLE_SPRITE); 100 100 Rocket::explosionParticles->setName("RocketExplosionParticles"); 101 Rocket::explosionParticles->setLifeSpan(. 5, .3);101 Rocket::explosionParticles->setLifeSpan(.6, .3); 102 102 Rocket::explosionParticles->setRadius(0.0, 10); 103 103 Rocket::explosionParticles->setRadius(.5, 20.0); 104 Rocket::explosionParticles->setRadius(1.0, 3.0); 105 Rocket::explosionParticles->setColor(0.0, 0,1,0,.9); 106 Rocket::explosionParticles->setColor(0.5, .8,.8,0,.5); 104 Rocket::explosionParticles->setRadius(1.0, 20.0); 105 Rocket::explosionParticles->setColor(0.0, 0,1,0,1); 106 Rocket::explosionParticles->setColor(0.5, .8,.8,0,.8); 107 Rocket::explosionParticles->setColor(0.8, .8,.8,.3,.8); 107 108 Rocket::explosionParticles->setColor(1.0, 1,1,1,.0); 108 109 } … … 164 165 ParticleEngine::getInstance()->addConnection(this->emitter, Rocket::explosionParticles); 165 166 166 this->emitter->setEmissionRate( 30.0);167 this->emitter->setEmissionRate(1000.0); 167 168 this->emitter->setEmissionVelocity(50.0); 168 169 // this->deactivate(); -
trunk/src/world_entities/world_entity.cc
r5435 r5465 66 66 // Model Loading 67 67 LoadParam<WorldEntity>(root, "model", this, &WorldEntity::loadModel) 68 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ; 68 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ; 69 70 // HACK 71 LoadParam<WorldEntity>(root, "scaled-model", this, &WorldEntity::loadModelWithScale) 72 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") ; 69 73 } 70 74
Note: See TracChangeset
for help on using the changeset viewer.