[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] The gsoc physics module, bug fixing?



On, Thu Jul 10, 2008, Peter Gebauer wrote:

> Hi Zhang and Marcus!
> 
> >   Thanks for your careful attention to my works :-)
> 
> I follow your repos updates on a daily basis, it's fun to watch it grow and 
> become a Python module.
> 
> Perhaps tests can have a separate build target and not link glut/gl to the 
> physics.so file?

The opengl references will be removed by Zhang Fan the next days or
so. As a temporary workaround you can delete the glTestSuite.c and
glTestSuite.h files and remove the gl related code from pgCollision.c
(patch attached).

Regards
Marcus
Index: src/pgCollision.c
===================================================================
--- src/pgCollision.c	(revision 1482)
+++ src/pgCollision.c	(working copy)
@@ -2,9 +2,7 @@
 #include "pgAABBBox.h"
 #include "pgShapeObject.h"
 #include "pgBodyObject.h"
-#include "glTestSuite.h"
 #include <assert.h>
-#include <GL/glut.h>
 
 extern PyTypeObject pgContactType;
 
@@ -218,12 +216,6 @@
 	incidR = c_diff(contact->pos, incidBody->vecPosition);
 
 	if(c_dot(contact->dv, contact->normal) > 0) return;
-	glPointSize(6.f);
-	glColor3f(1.f, 0.f, 0.f);
-	glBegin(GL_POINTS);
-	glVertex2d(contact->pos.real, contact->pos.imag);
-	glEnd();
-	glPointSize(1.f);
 
 	if(!refBody->bStatic)
 	{

Attachment: pgpqrrm8YSDDu.pgp
Description: PGP signature