Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- drawLine3D :: Vector3 -> Vector3 -> Color -> IO ()
- drawPoint3D :: Vector3 -> Color -> IO ()
- drawCircle3D :: Vector3 -> Float -> Vector3 -> Float -> Color -> IO ()
- drawTriangle3D :: Vector3 -> Vector3 -> Vector3 -> Color -> IO ()
- drawTriangleStrip3D :: [Vector3] -> Int -> Color -> IO ()
- drawCube :: Vector3 -> Float -> Float -> Float -> Color -> IO ()
- drawCubeV :: Vector3 -> Vector3 -> Color -> IO ()
- drawCubeWires :: Vector3 -> Float -> Float -> Float -> Color -> IO ()
- drawCubeWiresV :: Vector3 -> Vector3 -> Color -> IO ()
- drawSphere :: Vector3 -> Float -> Color -> IO ()
- drawSphereEx :: Vector3 -> Float -> Int -> Int -> Color -> IO ()
- drawSphereWires :: Vector3 -> Float -> Int -> Int -> Color -> IO ()
- drawCylinder :: Vector3 -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawCylinderEx :: Vector3 -> Vector3 -> Float -> Float -> Int -> Color -> IO ()
- drawCylinderWires :: Vector3 -> Float -> Float -> Float -> Int -> Color -> IO ()
- drawCylinderWiresEx :: Vector3 -> Vector3 -> Float -> Float -> Int -> Color -> IO ()
- drawCapsule :: Vector3 -> Vector3 -> CFloat -> Int -> Int -> Color -> IO ()
- drawCapsuleWires :: Vector3 -> Vector3 -> CFloat -> Int -> Int -> Color -> IO ()
- drawPlane :: Vector3 -> Vector2 -> Color -> IO ()
- drawRay :: Ray -> Color -> IO ()
- drawGrid :: Int -> Float -> IO ()
- loadModel :: String -> WindowResources -> IO Model
- loadModelFromMesh :: Mesh -> WindowResources -> IO Model
- unloadModel :: Model -> WindowResources -> IO ()
- isModelReady :: Model -> IO Bool
- getModelBoundingBox :: Model -> IO BoundingBox
- drawModel :: Model -> Vector3 -> Float -> Color -> IO ()
- drawModelEx :: Model -> Vector3 -> Vector3 -> Float -> Vector3 -> Color -> IO ()
- drawModelWires :: Model -> Vector3 -> Float -> Color -> IO ()
- drawModelWiresEx :: Model -> Vector3 -> Vector3 -> Float -> Vector3 -> Color -> IO ()
- drawBoundingBox :: BoundingBox -> Color -> IO ()
- drawBillboard :: Camera3D -> Texture -> Vector3 -> Float -> Color -> IO ()
- drawBillboardRec :: Camera3D -> Texture -> Rectangle -> Vector3 -> Vector2 -> Color -> IO ()
- drawBillboardPro :: Camera3D -> Texture -> Rectangle -> Vector3 -> Vector3 -> Vector2 -> Vector2 -> Float -> Color -> IO ()
- uploadMesh :: Mesh -> Bool -> WindowResources -> IO Mesh
- updateMeshBuffer :: Mesh -> Int -> Ptr () -> Int -> Int -> IO ()
- unloadMesh :: Mesh -> WindowResources -> IO ()
- storeMeshData :: Mesh -> WindowResources -> IO Mesh
- drawMesh :: Mesh -> Material -> Matrix -> IO ()
- drawMeshInstanced :: Mesh -> Material -> [Matrix] -> IO ()
- exportMesh :: Mesh -> String -> IO Bool
- getMeshBoundingBox :: Mesh -> IO BoundingBox
- genMeshTangents :: Mesh -> IO Mesh
- genMeshPoly :: Int -> Float -> WindowResources -> IO Mesh
- genMeshPlane :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh
- genMeshCube :: Float -> Float -> Float -> WindowResources -> IO Mesh
- genMeshSphere :: Float -> Int -> Int -> WindowResources -> IO Mesh
- genMeshHemiSphere :: Float -> Int -> Int -> WindowResources -> IO Mesh
- genMeshCylinder :: Float -> Float -> Int -> WindowResources -> IO Mesh
- genMeshCone :: Float -> Float -> Int -> WindowResources -> IO Mesh
- genMeshTorus :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh
- genMeshKnot :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh
- genMeshHeightmap :: Image -> Vector3 -> WindowResources -> IO Mesh
- genMeshCubicmap :: Image -> Vector3 -> WindowResources -> IO Mesh
- loadMaterials :: String -> WindowResources -> IO [Material]
- storeMaterialData :: [Material] -> WindowResources -> IO ()
- unloadMaterial :: Material -> WindowResources -> IO ()
- loadMaterialDefault :: IO Material
- isMaterialReady :: Material -> IO Bool
- setMaterialTexture :: Material -> Int -> Texture -> IO Material
- setModelMeshMaterial :: Model -> Int -> Int -> IO Model
- loadModelAnimations :: String -> IO [ModelAnimation]
- updateModelAnimation :: Model -> ModelAnimation -> Int -> IO ()
- isModelAnimationValid :: Model -> ModelAnimation -> IO Bool
- checkCollisionSpheres :: Vector3 -> Float -> Vector3 -> Float -> Bool
- checkCollisionBoxes :: BoundingBox -> BoundingBox -> Bool
- checkCollisionBoxSphere :: BoundingBox -> Vector3 -> Float -> Bool
- getRayCollisionSphere :: Ray -> Vector3 -> Float -> RayCollision
- getRayCollisionBox :: Ray -> BoundingBox -> RayCollision
- getRayCollisionMesh :: Ray -> Mesh -> Matrix -> RayCollision
- getRayCollisionTriangle :: Ray -> Vector3 -> Vector3 -> Vector3 -> RayCollision
- getRayCollisionQuad :: Ray -> Vector3 -> Vector3 -> Vector3 -> Vector3 -> RayCollision
Documentation
loadModelFromMesh :: Mesh -> WindowResources -> IO Model 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.
getModelBoundingBox :: Model -> IO BoundingBox Source #
drawBoundingBox :: BoundingBox -> Color -> IO () Source #
drawBillboardRec :: Camera3D -> Texture -> Rectangle -> Vector3 -> Vector2 -> Color -> IO () Source #
drawBillboardPro :: Camera3D -> Texture -> Rectangle -> Vector3 -> Vector3 -> Vector2 -> Vector2 -> Float -> Color -> IO () Source #
uploadMesh :: Mesh -> Bool -> WindowResources -> IO Mesh 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.
storeMeshData :: Mesh -> WindowResources -> IO Mesh Source #
getMeshBoundingBox :: Mesh -> IO BoundingBox Source #
genMeshPoly :: Int -> Float -> WindowResources -> IO Mesh Source #
genMeshPlane :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh Source #
genMeshCube :: Float -> Float -> Float -> WindowResources -> IO Mesh Source #
genMeshSphere :: Float -> Int -> Int -> WindowResources -> IO Mesh Source #
genMeshHemiSphere :: Float -> Int -> Int -> WindowResources -> IO Mesh Source #
genMeshCylinder :: Float -> Float -> Int -> WindowResources -> IO Mesh Source #
genMeshCone :: Float -> Float -> Int -> WindowResources -> IO Mesh Source #
genMeshTorus :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh Source #
genMeshKnot :: Float -> Float -> Int -> Int -> WindowResources -> IO Mesh Source #
genMeshHeightmap :: Image -> Vector3 -> WindowResources -> IO Mesh Source #
genMeshCubicmap :: Image -> Vector3 -> WindowResources -> IO Mesh Source #
loadMaterials :: String -> WindowResources -> IO [Material] Source #
storeMaterialData :: [Material] -> WindowResources -> IO () Source #
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.
loadModelAnimations :: String -> IO [ModelAnimation] Source #
updateModelAnimation :: Model -> ModelAnimation -> Int -> IO () Source #
isModelAnimationValid :: Model -> ModelAnimation -> IO Bool Source #
checkCollisionBoxes :: BoundingBox -> BoundingBox -> Bool Source #
checkCollisionBoxSphere :: BoundingBox -> Vector3 -> Float -> Bool Source #
getRayCollisionSphere :: Ray -> Vector3 -> Float -> RayCollision Source #
getRayCollisionBox :: Ray -> BoundingBox -> RayCollision Source #
getRayCollisionMesh :: Ray -> Mesh -> Matrix -> RayCollision Source #
getRayCollisionTriangle :: Ray -> Vector3 -> Vector3 -> Vector3 -> RayCollision Source #
getRayCollisionQuad :: Ray -> Vector3 -> Vector3 -> Vector3 -> Vector3 -> RayCollision Source #