Module texture

Source
Expand description

Common operations with textures.

Structs§

DrawTexture
Helper for rendering textures.

Functions§

attach_texture
Attach a texture to a color-only framebuffer.
new_texture
Construct a new black texture of the given size.
update_texture_size
Ensure the texture’s size is equal to size. If the size is the same, the texture doesn’t change.