From c4a2ef3f275ff07ce6f5a1d3c59676d71895a59e Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 15 May 2023 10:01:08 +0200 Subject: [PATCH] Prettify FUNCTIONS.toml --- modules/engine/FUNCTIONS.toml | 60 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/modules/engine/FUNCTIONS.toml b/modules/engine/FUNCTIONS.toml index b816c0d..519c882 100644 --- a/modules/engine/FUNCTIONS.toml +++ b/modules/engine/FUNCTIONS.toml @@ -1,95 +1,95 @@ # MEMORY [engine_malloc] type = "void *" -arguments = ["void *","size_t"] -argNames = ["ptr","size"] +arguments = ["void *","size_t"] +argNames = ["ptr", "size"] description = "Allocate memory, equivalent to C's realloc(), with the difference that it quits on failure." [engine_free] type = "void" -arguments = ["void *"] -argNames = ["ptr"] +arguments = ["void *"] +argNames = ["ptr"] description = "Allocate memory, equivalent to C's free()." # WINDOW [engine_window_init] type = "void" -arguments = ["int","int","char *"] -argNames = ["width","height","title"] +arguments = ["int", "int", "char *"] +argNames = ["width","height","title"] description = "Creates a window." [engine_window_present] type = "void" -arguments = [] -argNames = [] +arguments = [] +argNames = [] description = "Updates the window's surface." # SURFACE [engine_surface_color_set] type = "void" -arguments = ["char","char","char","char"] -argNames = ["r","g","b","a"] +arguments = ["char","char","char","char"] +argNames = ["r", "g", "b", "a"] description = "Set the color that will be drawn to the window surface." [engine_surface_draw_pixel] type = "void" -arguments = ["int","int"] -argNames = ["x","y"] +arguments = ["int","int"] +argNames = ["x", "y"] description = "Draw a pixel to the window surface." # TIME [engine_time_get] type = "long long" -arguments = [] -argNames = [] +arguments = [] +argNames = [] description = "Get the time passed since program start in milliseconds." [engine_time_sleep] type = "void" -arguments = ["long long"] -argNames = ["ms"] +arguments = ["long long"] +argNames = ["ms"] description = "Halt the program for some amount of time." # LOGIC [engine_event_get] type = "struct ENGINE_EVENT *" -arguments = [] -argNames = [] +arguments = [] +argNames = [] description = "Get an event. If the type is ENGINE_EVENT_TYPE_NONE, there are no more events. Needs to be freed with engine_free()." # TEXTURES [engine_texture_create] type = "struct ENGINE_TEXTURE *" -arguments = ["int","int"] -argNames = ["width","height"] +arguments = ["int", "int"] +argNames = ["width","height"] description = "Creates a texture. Needs to be freed when no longer needed with engine_texture_destroy()." [engine_texture_color_set] type = "void" -arguments = ["char","char","char","char"] -argNames = ["r","g","b","a"] +arguments = ["char","char","char","char"] +argNames = ["r", "g", "b", "a"] description = "Set the color that will be drawn to the texture." [engine_texture_draw_pixel] type = "void" -arguments = ["struct ENGINE_TEXTURE *","int","int"] -argNames = ["texture","x","y"] +arguments = ["struct ENGINE_TEXTURE *","int","int"] +argNames = ["texture", "x", "y"] description = "Draw a pixel to the texture." [engine_texture_destroy] type = "void" -arguments = ["struct ENGINE_TEXTURE *"] -argNames = ["texture"] +arguments = ["struct ENGINE_TEXTURE *"] +argNames = ["texture"] description = "Destroy a texture, freeing up memory." [engine_texture_render_2d] type = "void" -arguments = ["struct ENGINE_TEXTURE *","int","int"] -argNames = ["texture","sx","sy"] +arguments = ["struct ENGINE_TEXTURE *","int","int"] +argNames = ["texture", "sx", "sy"] description = "Render texture to the window surface." [engine_texture_from_file] type = "void" -arguments = ["struct ENGINE_TEXTURE *","char *"] -argNames = ["texture","fpath"] +arguments = ["struct ENGINE_TEXTURE *","char *"] +argNames = ["texture", "fpath"] description = "Read a raw RGBA image file into a texture."