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:
3ec168e
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 00:16:46 +0000
(08:16 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 00:16:46 +0000
(08:16 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
4a5a686
..
8a209b9
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-188,10
+188,10
@@
void windowReshape(int w, int h) {
glLoadIdentity();
\r
if (w <= h)
\r
glFrustum(-1.0, 1.0, -1.0*(GLfloat) h / (GLfloat) w,
\r
- 1.0*(GLfloat) h / (GLfloat) w,
2.0, 10.0
);
\r
+ 1.0*(GLfloat) h / (GLfloat) w,
nearClip, farClip
);
\r
else
\r
glFrustum(-1.0*(GLfloat) w / (GLfloat) h,
\r
- 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0,
2.0, 10.0
);
\r
+ 1.0*(GLfloat) w / (GLfloat) h, -1.0, 1.0,
nearClip, farClip
);
\r
glMatrixMode(GL_MODELVIEW);
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au