Skip to content

[glview.l]fix :3d-mode, :2d-mode #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lisp/opengl/src/glview.l
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,15 @@
0.0 0.0 500.0
0.0 0.0 1.0))
|#
(glPopMatrix)
(glEnable GL_DEPTH_TEST)
(glEnable GL_LIGHTING)
(glMatrixMode GL_MODELVIEW)
(glLoadIdentity))
(:2d-mode ()
(glViewport 0 0 x::width x::height)
(glMatrixMode GL_PROJECTION)
(glPushMatrix)
(glLoadIdentity)
(glorthofv (float-vector 0 x::width 0 x::height -1.0 1.0))
(glDisable GL_DEPTH_TEST)
Expand Down