victorfisac / Physac

2D physics header-only library for videogames developed in C using raylib library.
http://www.victorfisac.com/physac
MIT License
432 stars 28 forks source link

Where is PhysicsBody defined? #40

Closed filipencopav closed 4 years ago

filipencopav commented 4 years ago

You have this line:

typedef struct PhysicsBodyData *PhysicsBody;

But where is PhysicsBody defined?
I am trying to do a rust port, should i just create a struct PhysicsBody or struct PhysicsBodyData?

raysan5 commented 4 years ago

@theamazingwaffle actually that line is type-defining (PhysicsBodyData *) pointer as PhysicsBody, it means wherever you use PhysicsBody you're actually using (PhysicsBodyData *) pointer, that way the pointer format is not seen directly.

filipencopav commented 4 years ago

thanks