From b1e828c0ca889f252c18322f6b2cb8ce675baaa3 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 14 May 2023 17:26:33 +0200 Subject: [PATCH] Add events --- README.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.txt b/README.txt index 5a16dd6..2bae0d5 100644 --- a/README.txt +++ b/README.txt @@ -21,3 +21,9 @@ struct ENGINE_TEXTURE engine_createTexture(int width,int height) > 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) + +>>> EVENTS +ENGINE_EVENT contains a char denoting the type (ENGINE_EVENT_TYPE_*), and a void * containing the content of the event data, which should be cast to one of the ENGINE_EVENT_* structs: +> ENGINE_EVENT_TYPE_UNKNOWN: ENGINE_EVENT_UNKNOWN{} +> ENGINE_EVENT_TYPE_NONE: ENGINE_EVENT_NONE{} +> ENGINE_EVENT_TYPE_EXIT: ENGINE_EVENT_EXIT{}