[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


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);





More information about the Scummvm-git-logs mailing list