Add events

This commit is contained in:
Fierelier 2023-05-14 17:26:33 +02:00
parent 66999f93d8
commit b1e828c0ca

View File

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