update doc/*/scripting/ui.md
This commit is contained in:
parent
f9c5bd5e4d
commit
5b49c72d12
@ -184,6 +184,7 @@ Here, *color* can be specified in the following ways:
|
|||||||
| data:clear(*color*) | fills the canvas with the specified RGBA color |
|
| data:clear(*color*) | fills the canvas with the specified RGBA color |
|
||||||
| data:update() | applies changes to the canvas and uploads it to the GPU |
|
| data:update() | applies changes to the canvas and uploads it to the GPU |
|
||||||
| data:set_data(data: table<int>) | replaces pixel data (width * height * 4 numbers) |
|
| data:set_data(data: table<int>) | replaces pixel data (width * height * 4 numbers) |
|
||||||
|
| data:create_texture(name: str) | creates and shares texture to renderer |
|
||||||
|
|
||||||
|
|
||||||
## Inventory
|
## Inventory
|
||||||
|
|||||||
@ -185,6 +185,7 @@ document["worlds-panel"]:clear()
|
|||||||
| data:clear(*цвет*) | заполняет холст указанным RGBA цветом |
|
| data:clear(*цвет*) | заполняет холст указанным RGBA цветом |
|
||||||
| data:update() | применяет изменения и загружает холст в видеопамять |
|
| data:update() | применяет изменения и загружает холст в видеопамять |
|
||||||
| data:set_data(data: table<int>) | заменяет данные пикселей (ширина * высота * 4 чисел) |
|
| data:set_data(data: table<int>) | заменяет данные пикселей (ширина * высота * 4 чисел) |
|
||||||
|
| data:create_texture(name: str) | создаёт и делится текстурой с рендерером |
|
||||||
|
|
||||||
## Inventory (inventory)
|
## Inventory (inventory)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user