add assets.request_texture

This commit is contained in:
MihailRis 2026-01-28 12:48:10 +03:00
parent 5ca0891c3d
commit 6afb5c8c0f
3 changed files with 26 additions and 1 deletions

View file

@ -5,6 +5,13 @@ A library for working with audio/visual assets.
## Functions
```lua
-- Requests background texture loading
assets.request_texture(
-- Image file
filename: string,
-- Texture name after loading
name: string,
)
-- Loads a texture
assets.load_texture(
-- Array of bytes of an image file