yet another api rework, removal of integer types in public api, optionals at the end, some cleaning
This commit is contained in:
@ -14,7 +14,7 @@ typedef enum TileType {
|
||||
|
||||
|
||||
typedef struct Tile {
|
||||
Recti rect;
|
||||
Rect rect;
|
||||
TileType type;
|
||||
} Tile;
|
||||
|
||||
@ -34,8 +34,7 @@ typedef struct World {
|
||||
World *world_create(void);
|
||||
void world_destroy(World *world);
|
||||
void world_drawdef(World *world);
|
||||
bool world_find_intersect_frect(World *world, Rect rect, Rect *intersection);
|
||||
bool world_find_intersect_rect(World *world, Recti rect, Recti *intersection);
|
||||
bool world_find_rect_intersects(World *world, Rect rect, Rect *intersection);
|
||||
bool world_is_tile_at(World *world, float x, float y);
|
||||
void world_place_tile(World *world, float x, float y);
|
||||
void world_remove_tile(World *world, float x, float y);
|
||||
|
Reference in New Issue
Block a user