mirror of
https://github.com/Maschell/PushA_NX.git
synced 2024-11-25 17:26:53 +01:00
21 lines
654 B
C
21 lines
654 B
C
|
#include <SDL2/SDL.h>
|
||
|
|
||
|
struct Graphics {
|
||
|
SDL_Window* window;
|
||
|
SDL_Surface* window_surface;
|
||
|
};
|
||
|
|
||
|
typedef struct Graphics Graphics;
|
||
|
|
||
|
Graphics* init();
|
||
|
void deinit(struct Graphics* g);
|
||
|
void update(struct Graphics* g);
|
||
|
void sleep(int s);
|
||
|
void usleep(int s);
|
||
|
void background(struct Graphics* gr, int r, int g, int b);
|
||
|
void putAPixel(struct Graphics* gr, int x, int y, int r, int g, int b);
|
||
|
void drawString(struct Graphics* gr, int xi, int yi, char* string);
|
||
|
void drawStringf(struct Graphics* gr, int xi, int yi, const char* format, ...);
|
||
|
void drawColorString(struct Graphics* gr, int xi, int yi, char * string, int r, int g, int b);
|
||
|
char* fontLookup(char c);
|