projects
/
ld42_outofspace
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
placing white holes, and changed to n-body gravitational pull instead of
[ld42_outofspace]
/
src
/
main.cc
diff --git
a/src/main.cc
b/src/main.cc
index
4c707d6
..
fca4fd9
100644
(file)
--- a/
src/main.cc
+++ b/
src/main.cc
@@
-99,6
+99,7
@@
void draw_text(float x, float y, float r, float g, float b, const char *fmt, ...
glLoadIdentity();
glOrtho(0, win_width, 0, win_height, -1, 1);
glLoadIdentity();
glOrtho(0, win_width, 0, win_height, -1, 1);
+ glPushAttrib(GL_ENABLE_BIT);
glDisable(GL_LIGHTING);
glRasterPos2f(1, 1);
glDisable(GL_LIGHTING);
glRasterPos2f(1, 1);
@@
-107,7
+108,7
@@
void draw_text(float x, float y, float r, float g, float b, const char *fmt, ...
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, *text++);
}
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, *text++);
}
- glEnable(GL_LIGHTING);
+ glPopAttrib();
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);