mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-10 18:09:32 +00:00
Fix Create*Shape bindings to use pointers directly
This commit is contained in:
8
vendor/box2d/box2d.odin
vendored
8
vendor/box2d/box2d.odin
vendored
@@ -988,22 +988,22 @@ foreign lib {
|
||||
// Create a circle shape and attach it to a body. The shape definition and geometry are fully cloned.
|
||||
// Contacts are not created until the next time step.
|
||||
// @return the shape id for accessing the shape
|
||||
CreateCircleShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, #by_ptr circle: Circle) -> ShapeId ---
|
||||
CreateCircleShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, circle: ^Circle) -> ShapeId ---
|
||||
|
||||
// Create a line segment shape and attach it to a body. The shape definition and geometry are fully cloned.
|
||||
// Contacts are not created until the next time step.
|
||||
// @return the shape id for accessing the shape
|
||||
CreateSegmentShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, #by_ptr segment: Segment) -> ShapeId ---
|
||||
CreateSegmentShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, segment: ^Segment) -> ShapeId ---
|
||||
|
||||
// Create a capsule shape and attach it to a body. The shape definition and geometry are fully cloned.
|
||||
// Contacts are not created until the next time step.
|
||||
// @return the shape id for accessing the shape
|
||||
CreateCapsuleShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, #by_ptr capsule: Capsule) -> ShapeId ---
|
||||
CreateCapsuleShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, capsule: ^Capsule) -> ShapeId ---
|
||||
|
||||
// Create a polygon shape and attach it to a body. The shape definition and geometry are fully cloned.
|
||||
// Contacts are not created until the next time step.
|
||||
// @return the shape id for accessing the shape
|
||||
CreatePolygonShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, #by_ptr polygon: Polygon) -> ShapeId ---
|
||||
CreatePolygonShape :: proc(bodyId: BodyId, #by_ptr def: ShapeDef, polygon: ^Polygon) -> ShapeId ---
|
||||
|
||||
// Destroy a shape. You may defer the body mass update which can improve performance if several shapes on a
|
||||
// body are destroyed at once.
|
||||
|
||||
Reference in New Issue
Block a user