Module texture

Source
Expand description

Loading and rendering textures. Also render textures, per-pixel image manipulations.

Structs§

DrawTextureParams
Image
Image, data stored in CPU memory
RenderPass
RenderTarget
RenderTargetParams
Texture2D
Texture, data stored in GPU memory

Enums§

FilterMode

Functions§

build_textures_atlas
Build an atlas out of all currently loaded texture Later on all draw_texture calls with texture available in the atlas will use the one from the atlas NOTE: the GPU memory and texture itself in Texture2D will still be allocated and Texture->Image conversions will work with Texture2D content, not the atlas
draw_texture
draw_texture_ex
get_screen_data
Get pixel data from screen buffer and return an Image (screenshot)
load_image
Loads an Image from a file into CPU memory.
load_texture
Loads a Texture2D from a file into GPU memory.
render_target
A shortcut to create a render target with sample_count: 1 and no depth buffer
render_target_ex
render_target_msaa
A shortcut to create a render target with no depth buffer and sample_count: 4
set_default_filter_mode