Added sprite shape functions

This commit is contained in:
n00b
2025-03-20 17:29:11 -04:00
parent b6b1ecf86f
commit 14f87ecbf1
197 changed files with 5576 additions and 1203 deletions

View File

@@ -4,14 +4,24 @@
#include <irrlicht.h>
#include <box2d/box2d.h>
#define RC_SPRITE_SHAPE_BOX 1
#define RC_SPRITE_SHAPE_POLYGON 2
#define RC_SPRITE_SHAPE_CIRCLE 3
#define RC_SPRITE_SHAPE_CHAIN 4
struct rc_sprite2D_physics_obj
{
b2Body* body;
b2Fixture* fixture;
b2Shape* shape;
int shape_type;
int offset_x;
int offset_y;
int box_width;
int box_height;
};
struct rc_sprite2D_animation_obj