[Scummvm-cvs-logs] CVS: residual driver_gl.cpp,1.24,1.25
Pawel Kolodziejski
aquadran at users.sourceforge.net
Mon Jan 10 01:10:03 CET 2005
- Previous message: [Scummvm-cvs-logs] CVS: residual Makefile.common,1.12,1.13 README,1.18,1.19 TODO,1.41,1.42 debug.h,1.8,1.9 driver_gl.cpp,1.23,1.24 driver_gl.h,1.12,1.13 engine.cpp,1.56,1.57 keyframe.cpp,1.9,1.10 main.cpp,1.44,1.45 model.cpp,1.22,1.23 scene.cpp,1.34,1.35 scene.h,1.22,1.23 screen.cpp,1.19,1.20
- Next message: [Scummvm-cvs-logs] CVS: residual screen.cpp,1.20,NONE screen.h,1.6,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31119
Modified Files:
driver_gl.cpp
Log Message:
formating
Index: driver_gl.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/driver_gl.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- driver_gl.cpp 10 Jan 2005 09:07:46 -0000 1.24
+++ driver_gl.cpp 10 Jan 2005 09:09:42 -0000 1.25
@@ -154,9 +154,9 @@
for (i = 0; i < model->_numFaces; i++) {
Vector3d v;
Matrix4 tempMatrix = model->_matrix;
- float* pVertices;
+ float *pVertices;
- for(j = 0; j < model->_faces[i]._numVertices; j++ ) {
+ for (j = 0; j < model->_faces[i]._numVertices; j++) {
pVertices = model->_vertices + 3 * model->_faces[i]._vertices[j];
v.set(*(pVertices), *(pVertices + 1), *(pVertices + 2));
@@ -179,8 +179,10 @@
glBegin(GL_POLYGON);
for (int i = 0; i < face->_numVertices; i++) {
glNormal3fv(vertNormals + 3 * face->_vertices[i]);
+
if (face->_texVertices != NULL)
glTexCoord2fv(textureVerts + 2 * face->_texVertices[i]);
+
glVertex3fv(vertices + 3 * face->_vertices[i]);
}
glEnd();
@@ -203,6 +205,7 @@
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
}
+
if (node->_child != NULL) {
node->_child->draw();
glMatrixMode(GL_MODELVIEW);
- Previous message: [Scummvm-cvs-logs] CVS: residual Makefile.common,1.12,1.13 README,1.18,1.19 TODO,1.41,1.42 debug.h,1.8,1.9 driver_gl.cpp,1.23,1.24 driver_gl.h,1.12,1.13 engine.cpp,1.56,1.57 keyframe.cpp,1.9,1.10 main.cpp,1.44,1.45 model.cpp,1.22,1.23 scene.cpp,1.34,1.35 scene.h,1.22,1.23 screen.cpp,1.19,1.20
- Next message: [Scummvm-cvs-logs] CVS: residual screen.cpp,1.20,NONE screen.h,1.6,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list