Prettify FUNCTIONS.toml
This commit is contained in:
parent
f5dcf6ccd3
commit
c4a2ef3f27
@ -2,7 +2,7 @@
|
|||||||
[engine_malloc]
|
[engine_malloc]
|
||||||
type = "void *"
|
type = "void *"
|
||||||
arguments = ["void *","size_t"]
|
arguments = ["void *","size_t"]
|
||||||
argNames = ["ptr","size"]
|
argNames = ["ptr", "size"]
|
||||||
description = "Allocate memory, equivalent to C's realloc(), with the difference that it quits on failure."
|
description = "Allocate memory, equivalent to C's realloc(), with the difference that it quits on failure."
|
||||||
|
|
||||||
[engine_free]
|
[engine_free]
|
||||||
@ -14,7 +14,7 @@ description = "Allocate memory, equivalent to C's free()."
|
|||||||
# WINDOW
|
# WINDOW
|
||||||
[engine_window_init]
|
[engine_window_init]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["int","int","char *"]
|
arguments = ["int", "int", "char *"]
|
||||||
argNames = ["width","height","title"]
|
argNames = ["width","height","title"]
|
||||||
description = "Creates a window."
|
description = "Creates a window."
|
||||||
|
|
||||||
@ -28,13 +28,13 @@ description = "Updates the window's surface."
|
|||||||
[engine_surface_color_set]
|
[engine_surface_color_set]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["char","char","char","char"]
|
arguments = ["char","char","char","char"]
|
||||||
argNames = ["r","g","b","a"]
|
argNames = ["r", "g", "b", "a"]
|
||||||
description = "Set the color that will be drawn to the window surface."
|
description = "Set the color that will be drawn to the window surface."
|
||||||
|
|
||||||
[engine_surface_draw_pixel]
|
[engine_surface_draw_pixel]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["int","int"]
|
arguments = ["int","int"]
|
||||||
argNames = ["x","y"]
|
argNames = ["x", "y"]
|
||||||
description = "Draw a pixel to the window surface."
|
description = "Draw a pixel to the window surface."
|
||||||
|
|
||||||
# TIME
|
# TIME
|
||||||
@ -60,20 +60,20 @@ description = "Get an event. If the type is ENGINE_EVENT_TYPE_NONE, there are no
|
|||||||
# TEXTURES
|
# TEXTURES
|
||||||
[engine_texture_create]
|
[engine_texture_create]
|
||||||
type = "struct ENGINE_TEXTURE *"
|
type = "struct ENGINE_TEXTURE *"
|
||||||
arguments = ["int","int"]
|
arguments = ["int", "int"]
|
||||||
argNames = ["width","height"]
|
argNames = ["width","height"]
|
||||||
description = "Creates a texture. Needs to be freed when no longer needed with engine_texture_destroy()."
|
description = "Creates a texture. Needs to be freed when no longer needed with engine_texture_destroy()."
|
||||||
|
|
||||||
[engine_texture_color_set]
|
[engine_texture_color_set]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["char","char","char","char"]
|
arguments = ["char","char","char","char"]
|
||||||
argNames = ["r","g","b","a"]
|
argNames = ["r", "g", "b", "a"]
|
||||||
description = "Set the color that will be drawn to the texture."
|
description = "Set the color that will be drawn to the texture."
|
||||||
|
|
||||||
[engine_texture_draw_pixel]
|
[engine_texture_draw_pixel]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["struct ENGINE_TEXTURE *","int","int"]
|
arguments = ["struct ENGINE_TEXTURE *","int","int"]
|
||||||
argNames = ["texture","x","y"]
|
argNames = ["texture", "x", "y"]
|
||||||
description = "Draw a pixel to the texture."
|
description = "Draw a pixel to the texture."
|
||||||
|
|
||||||
[engine_texture_destroy]
|
[engine_texture_destroy]
|
||||||
@ -85,11 +85,11 @@ description = "Destroy a texture, freeing up memory."
|
|||||||
[engine_texture_render_2d]
|
[engine_texture_render_2d]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["struct ENGINE_TEXTURE *","int","int"]
|
arguments = ["struct ENGINE_TEXTURE *","int","int"]
|
||||||
argNames = ["texture","sx","sy"]
|
argNames = ["texture", "sx", "sy"]
|
||||||
description = "Render texture to the window surface."
|
description = "Render texture to the window surface."
|
||||||
|
|
||||||
[engine_texture_from_file]
|
[engine_texture_from_file]
|
||||||
type = "void"
|
type = "void"
|
||||||
arguments = ["struct ENGINE_TEXTURE *","char *"]
|
arguments = ["struct ENGINE_TEXTURE *","char *"]
|
||||||
argNames = ["texture","fpath"]
|
argNames = ["texture", "fpath"]
|
||||||
description = "Read a raw RGBA image file into a texture."
|
description = "Read a raw RGBA image file into a texture."
|
||||||
|
Loading…
Reference in New Issue
Block a user