From 9e102943d30456a46ffcf8650cbb8be2c5e9aba6 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 14 May 2023 14:35:43 +0200 Subject: [PATCH] Add documentation --- README.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..4723bf6 --- /dev/null +++ b/README.txt @@ -0,0 +1,23 @@ +A software accelerated (CPU-only) game engine for older computers. It uses a layer of abstraction, so different implementations can be ported to it. It primarily uses SDL2. This can also be used to more easily port the engine to different consoles. + +>> FUNCTIONS +> WINDOW +void engine_init(int width,int height,char * title) +void engine_setColor(char r,char g,char b,char a) +void engine_drawPixel(int x,int y) +void engine_render() + +> TIME +long long engine_time_get() +engine_sleep(long long ms) + +> LOGIC +struct ENGINE_EVENT engine_get_event() + +> TEXTURES +struct ENGINE_TEXTURE engine_createTexture(int width,int height) +void engine_textureSetColor(char r,char g,char b,char a) +void engine_textureDrawPixel(struct ENGINE_TEXTURE * texture,int x,int y) +void engine_textureDestroy(struct ENGINE_TEXTURE * texture) +void engine_renderTexture2D(struct ENGINE_TEXTURE * texture,int sx,int sy) +void engine_fileToTexture(struct ENGINE_TEXTURE * texture,char * fpath)