/ezsdl

Lightweight wrapper around SDL2 with Cartesian coordinate system

Primary LanguageCMIT LicenseMIT

ezsdl

Lightweight wrapper around SDL2 with Cartesian coordinate system

Functions

Create window and renderer

int create(int width, int height)

Destroy window and renderer

void destroy()

Change the color

void color(int r, int g, int b, int a)

Draw a line to the current buffer

void line(int x1, int y1, int x2, int y2)

Delay for some time

void delay(int ms)

Draw all contents to window

void draw()

Clear current screen

void clear()