stevedekorte/io — pull request #251 by Teslos (2013-09-18 13:08:14+00:00)
Title: Fixing the ODE Library and adding support for DrawStuff Library 

Hi,
There was similar problem in ODE library like in RegexMatch case .
For ODEJoint the problem was in code:
```
return IoODEJoint_newProtoCommon(state, IoODEBall_proto, jointGroup);
```
this code passes IoODEBall_proto as IoStateProtoFunc which is then passed to:
```
IoODEJoint *proto = IoState_protoWithId_(state, func);
```
as function pointer instead as protoId which is char *.
Changing previous line to:
```
IoODEJoint *proto = IoState_protoWithId_(state, protoWithId);
```
It was necessary to change functions calls to all possible Joints object IODEBall, IODEHinge etc..

The second change is addition of the DrawStuff library for drawing the ODE objects, it provides visualization
of the open dynamics engine and requires much less code then OpenGL and GLUT examples.
The screenshot shows the DrawStuff example similar to dstest example in ode-0.12 distribution:
![frame0001](https://f.cloud.github.com/assets/184191/1164890/db277fbc-2061-11e3-96d4-cdbfd0312ae3.png)
All examples with DrawStuff support are in addons/ODE/samples/drawstuff directory.

The samples are tested on my mac: 12.5.0 Darwin Kernel Version 12.5.0: Mon Jul 29 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64 x86_64

Please can you test the examples on your configuration too. It is necessary to have drawstuff library in
/usr/local/lib/libdrawstuff.la and libdrawstuff.a
textures are saved for now in /usr/local/include/drawstuff.

Best regards,
∃t