Fixed Memory Leak in Collision Callback

This commit is contained in:
n00b
2025-05-21 19:45:56 -04:00
parent daac85c26a
commit e7da6b745c
25 changed files with 1510 additions and 1283 deletions

View File

@@ -1,7 +1,7 @@
sub SetGravity3D(x, y, z)
sub GetGravity3D(ByRef x, ByRef y, ByRef z)
sub SetActorCollisionShape( actor, shape_type, mass)
function GetActorCollisionShape(actor)
sub SetActorShape( actor, shape_type, mass)
function GetActorShape(actor)
sub SetActorSolid(actor, flag)
function ActorIsSolid(actor)
function GetActorCollision(actor1, actor2)

View File

@@ -52,8 +52,8 @@ function GetWorld2DAutoClearForces()
function CastRay2D( from_x, from_y, to_x, to_y )
function CastRay2D_All( from_x, from_y, to_x, to_y )
sub GetRayHit2D( index, ByRef spr_id, ByRef x, ByRef y, ByRef normal_x, ByRef normal_y )
Sub SetSpriteCollisionShape(spr_id, shape)
Function GetSpriteCollisionShape(spr_id)
Sub SetSpriteShape(spr_id, shape)
Function GetSpriteShape(spr_id)
Sub SetSpriteRadius(spr_id, radius)
Function GetSpriteRadius(spr_id)
Sub SetSpriteBox(spr_id, w, h)
@@ -61,3 +61,5 @@ Sub GetSpriteBoxSize(spr_id, ByRef w, ByRef h)
Sub SetSpriteChain(spr_id, ByRef vx, ByRef vy, v_count, prev_x, prev_y, next_x, next_y)
Sub SetSpriteChainLoop(spr_id, ByRef vx, ByRef vy, v_count)
Sub SetSpritePolygon(spr_id, ByRef vx, ByRef vy, v_count)
Sub SetSpriteShapeOffset( spr_id, x, y )
Sub GetSpriteShapeOffset( spr_id, ByRef x, ByRef y )

View File

@@ -14,3 +14,5 @@ Sub FillTile(tilemap, tile, x, y, widthInTiles, heightInTiles)
Sub DrawTileMap(tilemap, x, y, w, h, offset_x, offset_y)
Sub DeleteTileSet(tileset)
Sub DeleteTileMap(tilemap)
Function TileSetExists(tileset)
Function TileMapExists(tilemap)