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:
b4de9c7
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:48:22 +0000
(09:48 +0800)
committer
Ash Tyndall
<
[email protected]
>
Thu, 20 Oct 2011 01:48:22 +0000
(09:48 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
fc078e2
..
914f3a6
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-499,8
+499,8
@@
void makeMenu() {
* @param h New height
\r
*/
\r
void windowReshape(int w, int h) {
\r
* @param h New height
\r
*/
\r
void windowReshape(int w, int h) {
\r
-
/*
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
\r
- glMatrixMode(GL_PROJECTION);
\r
+ glViewport(0, 0, (GLsizei) w, (GLsizei) h);
\r
+
/*
glMatrixMode(GL_PROJECTION);
\r
glLoadIdentity();
\r
if (w <= h)
\r
glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,
\r
glLoadIdentity();
\r
if (w <= h)
\r
glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,
\r
@@
-635,7
+635,7
@@
void display() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
\r
glLoadIdentity();
\r
gluLookAt(
\r
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
\r
glLoadIdentity();
\r
gluLookAt(
\r
- 0.0, 0.0, 10.0, /* eye is at (x,y,z) */
\r
+ 0.0,
1
0.0, 10.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
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
UCC
git Repository :: git.ucc.asn.au