ChipmunkDebugDraw.c for OpenGL ES 2.0

Official forum for the Chipmunk2D Physics Library.
Post Reply
calin
Posts: 30
Joined: Sat Feb 18, 2012 7:58 am
Contact:

ChipmunkDebugDraw.c for OpenGL ES 2.0

Post by calin »

Does a ChipmunkDebugDraw.c file for OpenGL ES 2.0 exists?
I'm currently trying to enable debug draw in my iOS project and I'm thinking someone has converted the debug draw file that comes with chipmunk to work with OpenGL ES 2.0, if such a file doesn't already exists and I don't know about it.
Please can anyone help me with this?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: ChipmunkDebugDraw.c for OpenGL ES 2.0

Post by slembcke »

I haven't yet and I don't know of anybody else who has.

I've started writing a simple but semi-fancy, anti-aliased, immediate mode vector renderer as part of the ChipmunkShowcase app. I was going to port the result to Cocos2D when it's done (hopefully before GDC :-\ ), but that isn't done yet either.

https://github.com/slembcke/ChipmunkShowcase
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
calin
Posts: 30
Joined: Sat Feb 18, 2012 7:58 am
Contact:

Re: ChipmunkDebugDraw.c for OpenGL ES 2.0

Post by calin »

Thanks, for now I think I'll write a very simple debug draw class for cocos2d based on the older ChimpunkDebugDraw.c file. Later I'll use your class, when it will be finished.
nubbel
Posts: 1
Joined: Sat Mar 17, 2012 1:33 pm
Contact:

Re: ChipmunkDebugDraw.c for OpenGL ES 2.0

Post by nubbel »

I've created a CCLayer subclass that draws chipmunk physics debug information such as shape outlines and bounding boxes, constraints/joints and collision points: https://github.com/nubbel/CPDebugLayer

Hope you like it!
calin
Posts: 30
Joined: Sat Feb 18, 2012 7:58 am
Contact:

Re: ChipmunkDebugDraw.c for OpenGL ES 2.0

Post by calin »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests