From 08dad6c97101b1c8297b16111b54ded98d07cb8b Mon Sep 17 00:00:00 2001 From: antifallobst Date: Wed, 22 Feb 2023 23:21:01 +0100 Subject: [PATCH] docs: documented graphics_buffer show/hide functionality --- .wiki/Kernel-documentation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.wiki/Kernel-documentation.md b/.wiki/Kernel-documentation.md index 890a833..f757298 100644 --- a/.wiki/Kernel-documentation.md +++ b/.wiki/Kernel-documentation.md @@ -339,6 +339,7 @@ A global usable 8x8 font. | pos_x | uint32_t | The buffers x offset (from the top-left corner) in the renderers main buffer | | pos_y | uint32_t | The buffers y offset (from the top-left corner) in the renderers main buffer | | blocked | bool | Thread safety block variable | +| render | bool | Controls, if the buffer will be rendered or not | | layer | graphics_buffer_layer_E | The layer, on which the buffer will be rendered | | prev | graphics_buffer_T* | The previous buffer in the rendering queue | | next | graphics_buffer_T* | The next buffer in the rendering queue | @@ -357,6 +358,13 @@ A global usable 8x8 font. #### `graphics_buffer_request(pos_x, pos_y, width, height, layer)` - function (graphics_buffer_T*) Allocates a graphics buffer and pushes it on top of the rendering queue of **_layer_**. +#### `graphics_buffer_show(graphics_buffer)` - function (void) +Enables rendering for this buffer. +Every created buffer will be rendered by default. + +#### `graphics_buffer_hide(graphics_buffer)` - function (void) +Disables rendering for this buffer. + #### `graphics_buffer_destruct(graphics_buffer)` - function (void) Removes **_graphics_buffer_** from the rendering queue and frees its memory allocations.