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
8ea0985
..
99506e0
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
@@
-409,8
+409,8
@@
int main(int argc, char **argv) {
\r
glMatrixMode(GL_MODELVIEW);
\r
gluLookAt(
\r
\r
glMatrixMode(GL_MODELVIEW);
\r
gluLookAt(
\r
- 0.0,
35.0, -2
0.0, /* eye is at (x,y,z) */
\r
- 0.0,
1
0.0, 0.0, /* center is at (x,y,z) */
\r
+ 0.0,
8.0, 3
0.0, /* eye is at (x,y,z) */
\r
+ 0.0, 0.0, 0.0, /* center is at (x,y,z) */
\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
\r
0.0, 1.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
\r
UCC
git Repository :: git.ucc.asn.au