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{}