git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a185b77
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 03:30:06 +0000
(11:30 +0800)
committer
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 03:30:06 +0000
(11:30 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
95c19c5
..
3f6922a
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
- 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
- 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
UCC
git Repository :: git.ucc.asn.au