Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2006, 10:33:06 PM (17 years ago)
Author:
nicolasc
Message:

house cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/lbolt.cc

    r10063 r10074  
    2929#include "debug.h"
    3030
    31 #include "static_model.h"
    32 
    3331
    3432#include "class_id_DEPRECATED.h"
     
    5856  this->rotationSpeed = 130;
    5957
    60   this->mat = new Material("lBolt");
    61   this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
    62   //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE);
    63   this->mat->setDiffuse(1,1,1);
    64   this->mat->setIllum(3);
    65   this->mat->setDiffuseMap("maps/lbolt2.png");
    66   this->mat->setDiffuseMap("maps/lbolt2.png",1);
    67   dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat);
    68   dynamic_cast<StaticModel*>(this->getModel())->finalize();
    69   this->mat->select();
    70 
    7158  this->halo = new Billboard();
    72   this->halo->setSize(.5, .5);
     59  this->halo->setSize(.35, .35);
    7360  this->halo->setTexture("hbolt_halo.png");
    7461}
     
    181168  this->halo->draw();
    182169
    183 //   this->mat->select();
    184 //   dynamic_cast<StaticModel*>(this->getModel())->draw();
    185 //   this->mat->select();
    186 //   dynamic_cast<StaticModel*>(this->getModel())->draw();
    187 //   this->mat->unselect();
    188 //   this->mat->unselect();
    189170  glPopMatrix();
    190171
Note: See TracChangeset for help on using the changeset viewer.