include/GizegoEngine.h
//DO NOT USE. This is integrated in the terrain class.
DO NOT USE. This is integrated in the terrain class.
DO NOT USE . This is integrated in the terrain class .
unsigned int AddLight(unsigned int range, Color color, int xpos, int ypos, bool avg)
		{
			unsigned int id = m_cid;
			m_cid++;
			SetTileColor(color, xpos, ypos, id, avg);
			for (int r = 0; r < range; r++)
			{ 
				for (int x = xpos - range + 1; x < xpos + range; x++)
					for (int y = ypos - range + 1; y < ypos + range; y++)
					{ 
						SetTileColor(color, x - 1, y, id, avg);
						SetTileColor(color, x + 1, y, id, avg);
						SetTileColor(color, x, y + 1, id, avg);
						SetTileColor(color, x, y - 1, id, avg);
					}
			}
			return id;
		}
unsigned int AddLight ( unsigned int range , Color color , int xpos , int ypos , bool avg ) { unsigned int id = m_cid ; m_cid ++ ; SetTileColor ( color , xpos , ypos , id , avg ) ; for ( int r = 0 ; r < range ; r ++ ) { for ( int x = xpos - range + 1 ; x < xpos + range ; x ++ ) for ( int y = ypos - range + 1 ; y < ypos + range ; y ++ ) { SetTileColor ( color , x - 1 , y , id , avg ) ; SetTileColor ( color , x + 1 , y , id , avg ) ; SetTileColor ( color , x , y + 1 , id , avg ) ; SetTileColor ( color , x , y - 1 , id , avg ) ; } } return id ; }
DO NOT USE.
DO NOT USE .