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:
765d384
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 00:20:05 +0000
(08:20 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 00:20:05 +0000
(08:20 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
8ea0985
..
d1c7cf2
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-187,11
+187,11
@@
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
- glFrustum(-near
Clip, farClip, -nearClip
*(GLfloat) h / (GLfloat) w,
\r
- far
Clip
*(GLfloat) h / (GLfloat) w, nearClip, farClip);
\r
+ glFrustum(-near
, far, -near
*(GLfloat) h / (GLfloat) w,
\r
+ far*(GLfloat) h / (GLfloat) w, nearClip, farClip);
\r
else
\r
else
\r
- glFrustum(-near
Clip
*(GLfloat) w / (GLfloat) h,
\r
- far
Clip*(GLfloat) w / (GLfloat) h, nearClip, farClip
, nearClip, farClip);
\r
+ glFrustum(-near*(GLfloat) w / (GLfloat) h,
\r
+ far
*(GLfloat) w / (GLfloat) h, near, far
, nearClip, farClip);
\r
glMatrixMode(GL_MODELVIEW);
\r
}
\r
\r
glMatrixMode(GL_MODELVIEW);
\r
}
\r
\r
UCC
git Repository :: git.ucc.asn.au