h-raylib-4.6.0.3: Raylib bindings for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Raylib.Core.Textures

Synopsis

Documentation

loadImageAnim :: String -> IO (Image, Int) Source #

Returns the animation and the number of frames in a tuple

unloadTexture :: Texture -> WindowResources -> IO () Source #

Unloads a texture from GPU memory (VRAM). Textures are automatically unloaded when closeWindow is called, so manually unloading textures is not required. In larger projects, you may want to manually unload textures to avoid having them in VRAM for too long.

unloadRenderTexture :: RenderTexture -> WindowResources -> IO () Source #

Unloads a render texture from GPU memory (VRAM). Render textures are automatically unloaded when closeWindow is called, so manually unloading render textures is not required. In larger projects, you may want to manually unload render textures to avoid having them in VRAM for too long.