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

Raylib.Core

Description

Bindings to rcore

Synopsis

High level

initWindow Source #

Arguments

:: Int 
-> Int 
-> String 
-> IO WindowResources

This value must be passed to some load* and unload* functions for automatic memory management.

beginScissorMode :: Int -> Int -> Int -> Int -> IO () Source #

unloadShader :: Shader -> WindowResources -> IO () Source #

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

Native

c'memRealloc :: Ptr () -> CInt -> IO (Ptr ()) Source #

c'memFree :: Ptr () -> IO () Source #

Callbacks