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:
5224820
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 07:35:04 +0000
(15:35 +0800)
committer
Ash Tyndall
<
[email protected]
>
Tue, 18 Oct 2011 07:35:04 +0000
(15:35 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
1c6fbd5
..
62ba908
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-110,10
+110,10
@@
char *dirDefault2 = "/cslinux/examples/CITS2231/project-files/models-textures";
char dataDir[200]; // Stores the directory name for the meshes and textures.
\r
\r
static GLfloat floorVertices[4][3] = {
\r
char dataDir[200]; // Stores the directory name for the meshes and textures.
\r
\r
static GLfloat floorVertices[4][3] = {
\r
- { -
20.0, 0.0, 2
0.0 },
\r
- {
20.0, 0.0, 2
0.0 },
\r
- {
20.0, 0.0, -2
0.0 },
\r
- { -
20.0, 0.0, -2
0.0 },
\r
+ { -
1000.0, 0.0, 100
0.0 },
\r
+ {
1000.0, 0.0, 100
0.0 },
\r
+ {
1000.0, 0.0, -100
0.0 },
\r
+ { -
1000.0, 0.0, -100
0.0 },
\r
};
\r
\r
static GLfloat lightColor[] = {1.0, 1.0, 1.0, 1.0}; // White light
\r
};
\r
\r
static GLfloat lightColor[] = {1.0, 1.0, 1.0, 1.0}; // White light
\r
@@
-513,13
+513,13
@@
void drawFloor() {
//}
\r
\r
glBegin(GL_QUADS);
\r
//}
\r
\r
glBegin(GL_QUADS);
\r
- glTexCoord2f(0.0, 0.0);
\r
+
//
glTexCoord2f(0.0, 0.0);
\r
glVertex3fv(floorVertices[0]);
\r
glVertex3fv(floorVertices[0]);
\r
- glTexCoord2f(0.0, 16.0);
\r
+
//
glTexCoord2f(0.0, 16.0);
\r
glVertex3fv(floorVertices[1]);
\r
glVertex3fv(floorVertices[1]);
\r
- glTexCoord2f(16.0, 16.0);
\r
+
//
glTexCoord2f(16.0, 16.0);
\r
glVertex3fv(floorVertices[2]);
\r
glVertex3fv(floorVertices[2]);
\r
- glTexCoord2f(16.0, 0.0);
\r
+
//
glTexCoord2f(16.0, 0.0);
\r
glVertex3fv(floorVertices[3]);
\r
glEnd();
\r
\r
glVertex3fv(floorVertices[3]);
\r
glEnd();
\r
\r
UCC
git Repository :: git.ucc.asn.au