Grid Mode

This commit is contained in:
Simon Robertshaw
2011-11-12 17:25:21 +00:00
parent bca76b0796
commit 1b984200f3

View File

@@ -1671,6 +1671,18 @@ void render_parts(pixel *vid)
glGetIntegerv(GL_BLEND_DST, &origBlendDst);
//Render to the particle FBO
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, partsFbo);
#else
if (GRID_MODE)//draws the grid
{
for (ny=0; ny<YRES; ny++)
for (nx=0; nx<XRES; nx++)
{
if (ny%(4*GRID_MODE)==0)
blendpixel(vid, nx, ny, 100, 100, 100, 80);
if (nx%(4*GRID_MODE)==0)
blendpixel(vid, nx, ny, 100, 100, 100, 80);
}
}
#endif
for(i = 0; i<=parts_lastActiveIndex; i++) {
if (parts[i].type) {