Changeset 1af0f6d in python-game
- Timestamp:
- Mar 29, 2017, 1:22:41 AM (8 years ago)
- Branches:
- master
- Children:
- c8cc13f
- Parents:
- e79c833
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game.py
re79c833 r1af0f6d 13 13 #glEnable (GL_BLEND); glBlendFunc (GL_ONE, GL_ONE); 14 14 15 # I should really figure out which attributes in the 2D rendering 16 # break the 3d rendering and reset those back instead of resetting 17 # all attributes 15 18 if state: 16 19 renderOverlay(overlay, font) 20 glPushAttrib(GL_ALL_ATTRIB_BITS) 17 21 projectOverlay(surface, overlay) 22 glPopAttrib(GL_ALL_ATTRIB_BITS) 18 23 else: 24 glPushAttrib(GL_ALL_ATTRIB_BITS) 19 25 render3d(surface) 26 glPopAttrib(GL_ALL_ATTRIB_BITS) 20 27 21 28 … … 33 40 34 41 glPushMatrix() 42 43 glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT) 44 35 45 glTranslatef(0.0,0.0,-zNear) 36 46
Note:
See TracChangeset
for help on using the changeset viewer.