git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
scene.c
diff --git
a/scene.c
b/scene.c
index
1cc9122
..
cc687e7
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-187,10
+187,10
@@
void windowReshape(int w, int h) {
glMatrixMode(GL_PROJECTION);
\r
glLoadIdentity();
\r
if (w <= h)
\r
glMatrixMode(GL_PROJECTION);
\r
glLoadIdentity();
\r
if (w <= h)
\r
- gl
Ortho
(near, far, near*(GLfloat)h/(GLfloat)w,
\r
+ gl
Frustum
(near, far, near*(GLfloat)h/(GLfloat)w,
\r
far*(GLfloat)h/(GLfloat)w, -100, 100);
\r
else
\r
far*(GLfloat)h/(GLfloat)w, -100, 100);
\r
else
\r
- gl
Ortho
(near*(GLfloat)w/(GLfloat)h,
\r
+ gl
Frustum
(near*(GLfloat)w/(GLfloat)h,
\r
far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip);
\r
glMatrixMode(GL_MODELVIEW);
\r
glLoadIdentity();
\r
far*(GLfloat)w/(GLfloat)h, near, far, nearClip, farClip);
\r
glMatrixMode(GL_MODELVIEW);
\r
glLoadIdentity();
\r
@@
-415,7
+415,7
@@
int main(int argc, char **argv) {
\r
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
\r
\r
\r
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
\r
\r
-
//
glutReshapeFunc(windowReshape);
\r
+ glutReshapeFunc(windowReshape);
\r
glutDisplayFunc(display);
\r
glutMouseFunc(mouse);
\r
glutKeyboardFunc(keyboard);
\r
glutDisplayFunc(display);
\r
glutMouseFunc(mouse);
\r
glutKeyboardFunc(keyboard);
\r
UCC
git Repository :: git.ucc.asn.au