E_net4 said: On the previous topic of C++11, what do you think of this? I personally can't wait to nail some modern code. Sounds good.
I feel bad. I still haven't setup an enviroment to compile this.
Am I the only one who thinks that code like this:
grim->Quads_SetColorVertex(0, map_main->grid[i].grid[(j+1)].light_rgb[0], map_main->grid[i].grid[(j+1)].light_rgb[1], map_main->grid[i].grid[(j+1)].light_rgb[2], 0.5f); grim->Quads_SetColorVertex(1, map_main->grid[(i+1)].grid[(j+1)].light_rgb[0], map_main->grid[(i+1)].grid[(j+1)].light_rgb[1], map_main->grid[(i+1)].grid[(j+1)].light_rgb[2], 0.5f); grim->Quads_SetColorVertex(2, map_main->grid[(i+1)].grid[(j+2)].light_rgb[0], map_main->grid[(i+1)].grid[(j+2)].light_rgb[1], map_main->grid[(i+1)].grid[(j+2)].light_rgb[2], 0); grim->Quads_SetColorVertex(3, map_main->grid[i].grid[(j+2)].light_rgb[0], map_main->grid[i].grid[(j+2)].light_rgb[1], map_main->grid[i].grid[(j+2)].light_rgb[2], 0); grim->Quads_SetSubset(0,0,1,0.5f); grim->Quads_Draw(-camera_x+i*128, -camera_y+(j+1)*128, 128, 64);
should be hidden so no one can ever find it and get bleeding eyes and a headache from it?
Edited 10 years ago
|