X Tutup
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Sprite system in C

sprite_rect.h

  • Manages rectangle from texture to drawing rectangle
  • Framework independent
  • No allocations, user pre-allocated/ managed memory
  • Overridable Vector2 & Rectangle typedefs
#define NEZ_SPRITE_RECT_IMPLEMENTATION // use for *.c section implementation
#define NEZ_VEC2_F Vector2
#define NEZ_RECT_F Rectangle
#include "sprite_rect.h"

sprite.h

  • Uses allocation
  • Tied to Raylib's Vector2, Rectangle, Texture
#define NEZ_SPRITE_IMPLEMENTATION // use for *.c section
#include "sprite.h"
X Tutup