29 lines
587 B
C
29 lines
587 B
C
#pragma once
|
|
#include <SDL3/SDL.h>
|
|
|
|
typedef struct jSurface_s *jSurface;
|
|
|
|
void init();
|
|
void update();
|
|
|
|
jSurface jNewSurface(int w, int h);
|
|
void jDeleteSurface(jSurface surf);
|
|
void jSetDest(jSurface surf);
|
|
void jSetSource(jSurface surf);
|
|
|
|
jSurface jLoadSurface(const char* filename);
|
|
|
|
void jPutPixel(int x, int y, Uint8 color);
|
|
Uint8 jGetPixel(int x, int y);
|
|
|
|
void jBlit(int dx, int dy, int sx, int sy, int w, int h);
|
|
|
|
void jInit(const char *titol, int w, int h, int z);
|
|
|
|
void jSetPal(int index, Uint32 color);
|
|
void jLoadPal(const char *filename);
|
|
|
|
void jCls(Uint8 color);
|
|
|
|
void jFlip();
|