Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10519 in orxonox.OLD for trunk/src/world_entities/bsp_entity.cc


Ignore:
Timestamp:
Jan 30, 2007, 9:51:21 PM (18 years ago)
Author:
patrick
Message:

emitter fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/bsp_entity.cc

    r10114 r10519  
    5757
    5858  this->bspManager = NULL;
     59  this->sortTransparency = 1;
     60  this->sortTransparencyMore = 0;
     61
    5962
    6063  this->name_handle = registerVarId( new SynchronizeableString( &this->name, &this->name_write, "name", PERMISSION_MASTER_SERVER ) );
     
    7477
    7578    this->bspManager = new BspManager(this);
     79    this->bspManager->sortTransparency = this->sortTransparency;
     80    this->bspManager->sortTransparencyMore = this->sortTransparencyMore;
    7681
    7782    if(this->bspManager->load(name.c_str(), 0.1f) == -1 ) {
     
    8792}
    8893
     94void 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}
    89105
    90106/**
     
    101117  .describe("Sets the of the BSP file.");
    102118
     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 
    103123  /*  LoadParam(root, "Scale", this, BSpEntity, setScale)
    104124        .describe("Sets the scale factore of the bsp level.");
Note: See TracChangeset for help on using the changeset viewer.