Changeset 10519 in orxonox.OLD for trunk/src/world_entities/bsp_entity.cc
- Timestamp:
- Jan 30, 2007, 9:51:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/bsp_entity.cc
r10114 r10519 57 57 58 58 this->bspManager = NULL; 59 this->sortTransparency = 1; 60 this->sortTransparencyMore = 0; 61 59 62 60 63 this->name_handle = registerVarId( new SynchronizeableString( &this->name, &this->name_write, "name", PERMISSION_MASTER_SERVER ) ); … … 74 77 75 78 this->bspManager = new BspManager(this); 79 this->bspManager->sortTransparency = this->sortTransparency; 80 this->bspManager->sortTransparencyMore = this->sortTransparencyMore; 76 81 77 82 if(this->bspManager->load(name.c_str(), 0.1f) == -1 ) { … … 87 92 } 88 93 94 void BspEntity::setTransparency(int sort, int sortMore) 95 { 96 this->sortTransparency = sort; 97 this->sortTransparencyMore = sortMore; 98 99 if (this->bspManager != NULL) 100 { 101 this->bspManager->sortTransparency = sort; 102 this->bspManager->sortTransparencyMore = sortMore; 103 } 104 } 89 105 90 106 /** … … 101 117 .describe("Sets the of the BSP file."); 102 118 119 LoadParam(root, "Transparency", this, BspEntity, setTransparency) 120 .describe("1. argument: true -> sort transparent textures; 2. argument: true -> better but slower sorting") 121 .defaultValues(1, 0); 122 103 123 /* LoadParam(root, "Scale", this, BSpEntity, setScale) 104 124 .describe("Sets the scale factore of the bsp level.");
Note: See TracChangeset
for help on using the changeset viewer.