Using following struct desing for entity.
struct Entity {
unsigned int id;
int type;
void* data;
void (*process)( Entity* entity, float delta );
void (*draw)( Entity* entity );
};
If compiling statically, move libraylib.a to "lib" folder. To build do the usual.
mkdir build
cd build
cmake ..
make