h-raylib-5.5.1.0: Raylib bindings for Haskell
Safe HaskellNone
LanguageHaskell2010

Raylib.Core.Models

Description

Bindings to rmodels

Synopsis

High level

drawCircle3D :: Vector3 -> Float -> Vector3 -> Float -> Color -> IO () Source #

drawCube :: Vector3 -> Float -> Float -> Float -> Color -> IO () Source #

drawCubeWires :: Vector3 -> Float -> Float -> Float -> Color -> IO () Source #

drawSphere :: Vector3 -> Float -> Color -> IO () Source #

drawSphereEx :: Vector3 -> Float -> Int -> Int -> Color -> IO () Source #

drawSphereWires :: Vector3 -> Float -> Int -> Int -> Color -> IO () Source #

drawCylinder :: Vector3 -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawCylinderEx :: Vector3 -> Vector3 -> Float -> Float -> Int -> Color -> IO () Source #

drawCylinderWires :: Vector3 -> Float -> Float -> Float -> Int -> Color -> IO () Source #

drawCylinderWiresEx :: Vector3 -> Vector3 -> Float -> Float -> Int -> Color -> IO () Source #

drawCapsule :: Vector3 -> Vector3 -> Float -> Int -> Int -> Color -> IO () Source #

drawCapsuleWires :: Vector3 -> Vector3 -> Float -> Int -> Int -> Color -> IO () Source #

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

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

loadModel :: String -> IO Model Source #

loadModelFromMesh :: Mesh -> IO Model Source #

Use loadModelFromMeshManaged for a resource-managed version

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

Unloads a managed model from GPU memory (VRAM)

isModelReady :: Model -> IO Bool Source #

drawModel :: Model -> Vector3 -> Float -> Color -> IO () Source #

drawModelEx :: Model -> Vector3 -> Vector3 -> Float -> Vector3 -> Color -> IO () Source #

drawModelWires :: Model -> Vector3 -> Float -> Color -> IO () Source #

drawModelWiresEx :: Model -> Vector3 -> Vector3 -> Float -> Vector3 -> Color -> IO () Source #

drawModelPoints :: Model -> Vector3 -> Float -> Color -> IO () Source #

drawModelPointsEx :: Model -> Vector3 -> Vector3 -> Float -> Vector3 -> Color -> IO () Source #

drawBillboard :: Camera3D -> Texture -> Vector3 -> Float -> Color -> IO () Source #

uploadMesh :: Mesh -> Bool -> IO Mesh Source #

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

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

Unloads a managed mesh from GPU memory (VRAM)

drawMesh :: Mesh -> Material -> Matrix -> IO () Source #

exportMesh :: Mesh -> String -> IO Bool Source #

exportMeshAsCode :: Mesh -> String -> IO Bool Source #

genMeshPoly :: Int -> Float -> IO Mesh Source #

genMeshPlane :: Float -> Float -> Int -> Int -> IO Mesh Source #

genMeshCube :: Float -> Float -> Float -> IO Mesh Source #

genMeshSphere :: Float -> Int -> Int -> IO Mesh Source #

genMeshHemiSphere :: Float -> Int -> Int -> IO Mesh Source #

genMeshCylinder :: Float -> Float -> Int -> IO Mesh Source #

genMeshCone :: Float -> Float -> Int -> IO Mesh Source #

genMeshTorus :: Float -> Float -> Int -> Int -> IO Mesh Source #

genMeshKnot :: Float -> Float -> Int -> Int -> IO Mesh Source #

loadMaterials :: String -> IO [Material] Source #

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

Unloads a managed material from GPU memory (VRAM)

checkCollisionSpheres :: Vector3 -> Float -> Vector3 -> Float -> Bool Source #

Native

c'drawCircle3D :: Ptr Vector3 -> CFloat -> Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

c'drawCube :: Ptr Vector3 -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawCubeWires :: Ptr Vector3 -> CFloat -> CFloat -> CFloat -> Ptr Color -> IO () Source #

c'drawSphere :: Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

c'drawSphereEx :: Ptr Vector3 -> CFloat -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawSphereWires :: Ptr Vector3 -> CFloat -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawCylinder :: Ptr Vector3 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCylinderEx :: Ptr Vector3 -> Ptr Vector3 -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCylinderWires :: Ptr Vector3 -> CFloat -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCylinderWiresEx :: Ptr Vector3 -> Ptr Vector3 -> CFloat -> CFloat -> CInt -> Ptr Color -> IO () Source #

c'drawCapsule :: Ptr Vector3 -> Ptr Vector3 -> CFloat -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawCapsuleWires :: Ptr Vector3 -> Ptr Vector3 -> CFloat -> CInt -> CInt -> Ptr Color -> IO () Source #

c'drawRay :: Ptr Ray -> Ptr Color -> IO () Source #

c'drawGrid :: CInt -> CFloat -> IO () Source #

c'loadModel :: CString -> IO (Ptr Model) Source #

c'drawModel :: Ptr Model -> Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

c'drawModelEx :: Ptr Model -> Ptr Vector3 -> Ptr Vector3 -> CFloat -> Ptr Vector3 -> Ptr Color -> IO () Source #

c'drawModelWires :: Ptr Model -> Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

c'drawModelPoints :: Ptr Model -> Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

c'drawBillboard :: Ptr Camera3D -> Ptr Texture -> Ptr Vector3 -> CFloat -> Ptr Color -> IO () Source #

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

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

c'exportMesh :: Ptr Mesh -> CString -> IO CBool Source #

c'exportMeshAsCode :: Ptr Mesh -> CString -> IO CBool Source #

c'genMeshPoly :: CInt -> CFloat -> IO (Ptr Mesh) Source #

c'genMeshPlane :: CFloat -> CFloat -> CInt -> CInt -> IO (Ptr Mesh) Source #

c'genMeshCube :: CFloat -> CFloat -> CFloat -> IO (Ptr Mesh) Source #

c'genMeshSphere :: CFloat -> CInt -> CInt -> IO (Ptr Mesh) Source #

c'genMeshHemiSphere :: CFloat -> CInt -> CInt -> IO (Ptr Mesh) Source #

c'genMeshCylinder :: CFloat -> CFloat -> CInt -> IO (Ptr Mesh) Source #

c'genMeshCone :: CFloat -> CFloat -> CInt -> IO (Ptr Mesh) Source #

c'genMeshTorus :: CFloat -> CFloat -> CInt -> CInt -> IO (Ptr Mesh) Source #

c'genMeshKnot :: CFloat -> CFloat -> CInt -> CInt -> IO (Ptr Mesh) Source #

c'loadMaterials :: CString -> Ptr CInt -> IO (Ptr Material) Source #

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

c'loadModelAnimations :: CString -> Ptr CInt -> IO (Ptr ModelAnimation) Source #

c'checkCollisionSpheres :: Ptr Vector3 -> CFloat -> Ptr Vector3 -> CFloat -> IO CBool Source #