diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md index c6da89c4..a88a80a6 100644 --- a/doc/en/scripting/ui.md +++ b/doc/en/scripting/ui.md @@ -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:update() | applies changes to the canvas and uploads it to the GPU | | data:set_data(data: table) | replaces pixel data (width * height * 4 numbers) | +| data:create_texture(name: str) | creates and shares texture to renderer | ## Inventory diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md index 62697c8f..107f5139 100644 --- a/doc/ru/scripting/ui.md +++ b/doc/ru/scripting/ui.md @@ -185,6 +185,7 @@ document["worlds-panel"]:clear() | data:clear(*цвет*) | заполняет холст указанным RGBA цветом | | data:update() | применяет изменения и загружает холст в видеопамять | | data:set_data(data: table) | заменяет данные пикселей (ширина * высота * 4 чисел) | +| data:create_texture(name: str) | создаёт и делится текстурой с рендерером | ## Inventory (inventory)