src/proto2/Terrain.cc
changeset 182 84675387ca74
parent 165 26e6a87a9085
equal deleted inserted replaced
181:62e0c2cfb714 182:84675387ca74
   270     }
   270     }
   271     
   271     
   272     this->generatePixelBuffer();
   272     this->generatePixelBuffer();
   273 }
   273 }
   274 
   274 
   275 void Terrain::drawTerrain(CL_GraphicContext *gc) {
   275 void Terrain::draw(CL_GraphicContext *gc) {
   276     CL_Surface surf(this->pixbuf);
   276     CL_Surface surf(this->pixbuf);
   277     surf.draw(0,0,gc);
   277     surf.draw(0,0,gc);
   278 }
   278 }
   279 
   279 
   280 std::vector<std::vector<TerrainType> > Terrain::getTerrain() const {
   280 std::vector<std::vector<TerrainType> > Terrain::getTerrain() const {