Changeset 8697 in orxonox.OLD for branches/terrain/src
- Timestamp:
- Jun 21, 2006, 11:45:20 PM (18 years ago)
- Location:
- branches/terrain
- Files:
-
- 2 deleted
- 17 edited
- 15 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/defs/debug.h
r8282 r8697 111 111 #define PRINTFORX_VDEBUG PRINTF5 112 112 113 #ifndef ORX_DATADIR 114 #define ORX_DATADIR "/usr/share" 115 #endif 116 #ifndef DEBUG_LEVEL 117 #define DEBUG_LEVEL 2 118 #endif 113 119 #if DEBUG_LEVEL <= 3 114 120 #define PRINTF(x) PRINT(x) -
branches/terrain/src/defs/glincl.h
r5279 r8697 17 17 #include <OpenGL/gl.h> 18 18 #include <OpenGL/glu.h> 19 #include <OpenGL/glext.h> 19 20 #endif 20 21 -
branches/terrain/src/lib/collision_detection/cd_engine.h
r8186 r8697 16 16 class WorldEntity; 17 17 class OBBTree; 18 class Terrain ;18 class TerrainEntity; 19 19 class BspManager; 20 20 //class Player; … … 50 50 inline void disable(const int options) { int temp = this->state & options; this->state ^= temp; } 51 51 52 inline void setTerrain( Terrain* terrain) { this->terrain = terrain; }52 inline void setTerrain( TerrainEntity* terrain) { this->terrain = terrain; } 53 53 inline void setBSPModel(BspManager* bspManager) { this->bspManager = bspManager; } 54 54 … … 83 83 OBBTree* rootTree; //!< for testing purposes a root tree 84 84 85 Terrain * terrain; //!< this it a ref to the terrain, serving as a ground for all WE85 TerrainEntity* terrain; //!< this it a ref to the terrain, serving as a ground for all WE 86 86 BspManager* bspManager; 87 87 }; -
branches/terrain/src/lib/graphics/graphics_engine.cc
r8518 r8697 236 236 // Enable default GL stuff 237 237 glEnable(GL_DEPTH_TEST); 238 238 glEnable(GL_CULL_FACE); 239 glCullFace(GL_FRONT); 239 240 Render2D::getInstance(); 240 241 -
branches/terrain/src/lib/graphics/importer/Makefile.am
r8490 r8697 37 37 md3/md3_mesh.cc \ 38 38 md3/md3_data.cc \ 39 md3/md3_tag.cc 40 41 39 md3/md3_tag.cc \ 40 \ 41 terrain/terrain.cc \ 42 terrain/terrain_quad.cc \ 43 terrain/terrain_page.cc \ 44 terrain/frustum.cc \ 45 terrain/buffer_broker.cc 42 46 43 47 … … 79 83 md3/md3_mesh.h \ 80 84 md3/md3_data.h \ 81 md3/md3_tag.h 85 md3/md3_tag.h \ 86 \ 87 terrain/terrain.h \ 88 terrain/terrain_page.h \ 89 terrain/terrain_quad.h \ 90 terrain/frustum.h \ 91 terrain/types.h \ 92 terrain/buffer_broker.h 82 93 -
branches/terrain/src/lib/graphics/importer/material.h
r8619 r8697 60 60 void setSpecularMap(const std::string& sMap, GLenum target = GL_TEXTURE_2D); 61 61 void setBump(const std::string& bump); 62 63 62 GLuint diffuseTextureID(unsigned int i = 0) const { return (this->textures.size() > i)? this->textures[i].getTexture() : 0; }; 64 63 -
branches/terrain/src/lib/util/threading.h
r7847 r8697 14 14 #include <SDL/SDL_thread.h> 15 15 #endif 16 16 #include <string> 17 17 namespace OrxThread 18 18 { … … 31 31 void start(); 32 32 void terminate(); 33 34 35 33 private: 36 34 SDL_Thread* thread; -
branches/terrain/src/orxonox.cc
r8623 r8697 27 27 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ORXONOX 28 28 #include "orxonox.h" 29 29 #ifndef PACKAGE_NAME 30 #define PACKAGE_NAME "orxonox" 31 #endif 32 #ifndef PACKAGE_VERSION 33 #define PACKAGE_VERSION "00" 34 #endif 30 35 #include "globals.h" 31 36 … … 511 516 // checking for existence of the configuration-files, or if the lock file is still used 512 517 if (showGui || (!File("./orxonox.conf").isFile() && 513 !File(DEFAULT_CONFIG_FILE).isFile()) 514 #if DEBUG_LEVEL <= 3 // developers do not need to see the GUI, when orxonox fails 515 || ResourceManager::isFile(DEFAULT_LOCK_FILE) 516 #endif 517 ) 518 !File(DEFAULT_CONFIG_FILE).isFile() ) ) 518 519 { 519 520 File lockFile(DEFAULT_LOCK_FILE); -
branches/terrain/src/story_entities/game_world.cc
r8490 r8697 30 30 #include "camera.h" 31 31 #include "environment.h" 32 #include "terrain.h"33 32 #include "test_entity.h" 34 #include "terrain .h"33 #include "terrain_entity.h" 35 34 #include "playable.h" 36 35 #include "environments/mapped_water.h" -
branches/terrain/src/story_entities/game_world_data.cc
r8490 r8697 31 31 #include "player.h" 32 32 #include "camera.h" 33 #include "terrain .h"33 #include "terrain_entity.h" 34 34 #include "skybox.h" 35 35 #include "md2/md2Model.h" … … 199 199 BaseObject* created = Factory::fabricate(element); 200 200 if( created != NULL ) 201 PRINTF( 4)("Created a %s: %s\n", created->getClassName(), created->getName());201 PRINTF(2)("Created a %s: %s\n", created->getClassName(), created->getName()); 202 202 203 203 //todo do this more elegant … … 207 207 State::setSkyBox(dynamic_cast<SkyBox*>(this->sky)); 208 208 } 209 if( element->Value() == "Terrain" && created->isA(CL_TERRAIN)) 209 210 if( element->Value() == "TerrainEntity" && created->isA(CL_TERRAIN)) 210 211 { 211 this->terrain = dynamic_cast<Terrain *>(created);212 this->terrain = dynamic_cast<TerrainEntity*>(created); 212 213 CDEngine::getInstance()->setTerrain(terrain); 213 214 } -
branches/terrain/src/story_entities/game_world_data.h
r7460 r8697 14 14 class Camera; 15 15 class Player; 16 class Terrain ;16 class TerrainEntity; 17 17 class WorldEntity; 18 18 … … 57 57 Player* localPlayer; //!< The player, you fly through the level. 58 58 WorldEntity* sky; //!< The environmental sky of orxonox 59 Terrain *terrain; //!< The terrain - ground59 TerrainEntity* terrain; //!< The terrain - ground 60 60 61 61 OrxSound::OggPlayer* music; //!< Reference to the SoundEngine's music player (OggPlayer) -
branches/terrain/src/story_entities/multi_player_world_data.cc
r8490 r8697 31 31 #include "camera.h" 32 32 #include "environment.h" 33 #include "terrain .h"33 #include "terrain_entity.h" 34 34 #include "test_entity.h" 35 #include "terrain.h"36 35 #include "md2/md2Model.h" 37 36 #include "world_entities/projectiles/projectile.h" … … 157 156 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) 158 157 { 159 this->terrain = dynamic_cast<Terrain *>(created);158 this->terrain = dynamic_cast<TerrainEntity*>(created); 160 159 CDEngine::getInstance()->setTerrain(terrain); 161 160 } … … 188 187 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) 189 188 { 190 this->terrain = dynamic_cast<Terrain *>(created);189 this->terrain = dynamic_cast<TerrainEntity*>(created); 191 190 CDEngine::getInstance()->setTerrain(terrain); 192 191 } -
branches/terrain/src/story_entities/simple_game_menu.cc
r8619 r8697 31 31 #include "world_entity.h" 32 32 #include "elements/image_entity.h" 33 #include "terrain .h"33 #include "terrain_entity.h" 34 34 #include "camera.h" 35 35 -
branches/terrain/src/util/multiplayer_team_deathmatch.cc
r8623 r8697 32 32 33 33 #include "shared_network_data.h" 34 #include "terrain .h"34 #include "terrain_entity.h" 35 35 #include "class_list.h" 36 36 #include "space_ships/space_ship.h" -
branches/terrain/src/world_entities/WorldEntities.am
r8490 r8697 8 8 world_entities/skysphere.cc \ 9 9 world_entities/skybox.cc \ 10 world_entities/terrain .cc \10 world_entities/terrain_entity.cc \ 11 11 world_entities/satellite.cc \ 12 12 world_entities/movie_entity.cc \ … … 64 64 skysphere.h \ 65 65 skybox.h \ 66 terrain .h \66 terrain_entity.h \ 67 67 satellite.h \ 68 68 movie_entity.h \ -
branches/terrain/src/world_entities/camera.cc
r7868 r8697 34 34 this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5); 35 35 36 this->setFovy( 90);36 this->setFovy(60.0); 37 37 this->setAspectRatio(1.2f); 38 this->setClipRegion( .1, 2000);38 this->setClipRegion( .1, 40.0f ); 39 39 40 40 this->setViewMode(Camera::ViewNormal); … … 83 83 { 84 84 this->nearClip = nearClip; 85 this->farClip = farClip;85 this->farClip = 400.0f;//farClip; 86 86 } 87 87 -
branches/terrain/src/world_entities/skybox.cc
r8037 r8697 230 230 // glPushAttrib(GL_LIGHTING_BIT); 231 231 glDisable(GL_LIGHTING); 232 232 glDisable( GL_DEPTH_TEST ); 233 233 glDisable(GL_FOG); 234 234
Note: See TracChangeset
for help on using the changeset viewer.