dungeon_crawler

diff prototype/src/tile.cc @ 23:fa8f89d06f6f

progress with light rendering
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Aug 2012 00:10:10 +0300
parents 7b65bba15553
children ddb68dc4ba07
line diff
     1.1 --- a/prototype/src/tile.cc	Tue Aug 21 06:34:14 2012 +0300
     1.2 +++ b/prototype/src/tile.cc	Thu Aug 23 00:10:10 2012 +0300
     1.3 @@ -56,6 +56,15 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +void Tile::draw_lights(unsigned int draw_mask) const
     1.8 +{
     1.9 +	for(size_t i=0; i<lights.size(); i++) {
    1.10 +		if(light_side[i] & draw_mask) {
    1.11 +			lights[i]->draw();
    1.12 +		}
    1.13 +	}
    1.14 +}
    1.15 +
    1.16  /*
    1.17  int Tile::load_lights(const aiScene *scn)
    1.18  {