openfl / box2d

Haxe port of Box2D, a popular rigid-body 2D physics engine
Other
96 stars 29 forks source link

Extend debug drawing support to non-Flash targets, make TestBed project compile under lime #12

Closed Rezmason closed 7 months ago

Rezmason commented 9 years ago

Converted TestBed sample to a lime project.

The library is no longer dependent on the Flash API; its debug draw implementation has been abstracted, with Flash and Cairo implementations.

Also included is CairoGLStack, a class that associates a Cairo image surface with a GL screen quad.

Tested on Flash and mac targets.