usata-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Usata-commits] Changes to usata2/src/objects/test_object.cpp


From: David Lau
Subject: [Usata-commits] Changes to usata2/src/objects/test_object.cpp
Date: Thu, 20 Jan 2005 15:20:32 -0500

Index: usata2/src/objects/test_object.cpp
diff -u usata2/src/objects/test_object.cpp:1.12 
usata2/src/objects/test_object.cpp:1.13
--- usata2/src/objects/test_object.cpp:1.12     Tue Jan 18 00:12:08 2005
+++ usata2/src/objects/test_object.cpp  Thu Jan 20 20:20:30 2005
@@ -10,7 +10,7 @@
 // included in the software distribution, or visit
 // http://www.fsf.org/licenses/gpl.html.
 //
-// $Id: test_object.cpp,v 1.12 2005/01/18 00:12:08 skunix Exp $
+// $Id: test_object.cpp,v 1.13 2005/01/20 20:20:30 skunix Exp $
 
 #include "../object.hpp"
 #include "../object-registry.hpp"
@@ -62,13 +62,18 @@
                glTranslatef(0,0,-1.0);
                glRotatef(spin, 0, -1,0);
                
-               glBegin(GL_TRIANGLES);
+               glBegin(GL_QUADS);
                glTexCoord2f(0,0);
-               glVertex3f(-.5, 0.0, .0);
-               glTexCoord2f(1,1);
+               glVertex3f(-.5, -0.5, .0);
+
+               glTexCoord2f(1,0);
                glVertex3f(0.5, -0.5, .0);
+
+               glTexCoord2f(1,1);
+               glVertex3f( 0.5, 0.5 ,.0);
                glTexCoord2f(0,1);
-               glVertex3f(-0.5, -0.5 ,.0);
+               glVertex3f(-0.5, 0.5 ,.0);
+       
                glEnd();
                glPopMatrix();
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]