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

Raylib.Core.Models

Synopsis

Documentation

drawRay :: Ray -> Color -> IO () Source #

drawGrid :: Int -> Float -> IO () Source #

unloadModel :: Model -> WindowResources -> IO () Source #

Unloads a model from GPU memory (VRAM). This unloads its associated meshes and materials. Models are automatically unloaded when closeWindow is called, so manually unloading models is not required. In larger projects, you may want to manually unload models to avoid having them in VRAM for too long.

updateMeshBuffer :: Mesh -> Int -> Ptr () -> Int -> Int -> IO () Source #

unloadMesh :: Mesh -> WindowResources -> IO () Source #

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

unloadMaterial :: Material -> WindowResources -> IO () Source #

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