gldraw.cpp

changeset 28
208adc847377
parent 26
83184d9407c7
child 30
31ff9aabd506
--- a/gldraw.cpp	Mon Mar 18 12:24:16 2013 +0200
+++ b/gldraw.cpp	Mon Mar 18 13:16:21 2013 +0200
@@ -68,7 +68,7 @@
 	}
 	
 	for (ulong i = 0; i < g_CurrentFile->objects.size(); i++)
-		CompileOneObject (g_CurrentFile->objects[i]);
+		compileOneObject (g_CurrentFile->objects[i]);
 	
 	glEndList ();
 }
@@ -76,7 +76,7 @@
 #define GL_VERTEX(V) \
 	glVertex3d (V.x, V.y, V.z);
 
-void renderer::CompileOneObject (LDObject* obj) {
+void renderer::compileOneObject (LDObject* obj) {
 	if (!obj)
 		return;
 	
@@ -121,7 +121,7 @@
 	}
 }
 
-void renderer::ClampAngle (double& fAngle) {
+void renderer::clampAngle (double& fAngle) {
 	while (fAngle < 0)
 		fAngle += 360.0;
 	while (fAngle > 360.0)
@@ -135,15 +135,15 @@
 	if (event->buttons () & Qt::LeftButton) {
 		fRotX = fRotX + (dy);
 		fRotY = fRotY + (dx);
-		ClampAngle (fRotX);
-		ClampAngle (fRotY);
+		clampAngle (fRotX);
+		clampAngle (fRotY);
 	}
 	
 	if (event->buttons () & Qt::RightButton) {
 		fRotX = fRotX + (dy);
 		fRotZ = fRotZ + (dx);
-		ClampAngle (fRotX);
-		ClampAngle (fRotZ);
+		clampAngle (fRotX);
+		clampAngle (fRotZ);
 	}
 	
 	if (event->buttons () & Qt::MidButton) {

mercurial