forked from Fierelier/me.fier.engine
Add events
This commit is contained in:
parent
66999f93d8
commit
b1e828c0ca
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user