Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings for types used mainly in rmodels
Synopsis
- data MaterialMapIndex
- data ShaderLocationIndex
- = ShaderLocVertexPosition
- | ShaderLocVertexTexcoord01
- | ShaderLocVertexTexcoord02
- | ShaderLocVertexNormal
- | ShaderLocVertexTangent
- | ShaderLocVertexColor
- | ShaderLocMatrixMvp
- | ShaderLocMatrixView
- | ShaderLocMatrixProjection
- | ShaderLocMatrixModel
- | ShaderLocMatrixNormal
- | ShaderLocVectorView
- | ShaderLocColorDiffuse
- | ShaderLocColorSpecular
- | ShaderLocColorAmbient
- | ShaderLocMapAlbedo
- | ShaderLocMapMetalness
- | ShaderLocMapNormal
- | ShaderLocMapRoughness
- | ShaderLocMapOcclusion
- | ShaderLocMapEmission
- | ShaderLocMapHeight
- | ShaderLocMapCubemap
- | ShaderLocMapIrradiance
- | ShaderLocMapPrefilter
- | ShaderLocMapBrdf
- data ShaderUniformDataType
- data ShaderUniformData
- data ShaderUniformDataV
- = ShaderUniformFloatV [Float]
- | ShaderUniformVec2V [Vector2]
- | ShaderUniformVec3V [Vector3]
- | ShaderUniformVec4V [Vector4]
- | ShaderUniformIntV [Int]
- | ShaderUniformIVec2V [(Int, Int)]
- | ShaderUniformIVec3V [(Int, Int, Int)]
- | ShaderUniformIVec4V [(Int, Int, Int, Int)]
- | ShaderUniformSampler2DV [Texture]
- unpackShaderUniformData :: ShaderUniformData -> IO (ShaderUniformDataType, ForeignPtr ())
- unpackShaderUniformDataV :: ShaderUniformDataV -> IO (ShaderUniformDataType, ForeignPtr (), Int)
- data ShaderAttributeDataType
- data Mesh = Mesh {
- mesh'vertexCount :: Int
- mesh'triangleCount :: Int
- mesh'vertices :: [Vector3]
- mesh'texcoords :: [Vector2]
- mesh'texcoords2 :: Maybe [Vector2]
- mesh'normals :: [Vector3]
- mesh'tangents :: Maybe [Vector4]
- mesh'colors :: Maybe [Color]
- mesh'indices :: Maybe [Word16]
- mesh'animVertices :: Maybe [Vector3]
- mesh'animNormals :: Maybe [Vector3]
- mesh'boneIds :: Maybe [Word8]
- mesh'boneWeights :: Maybe [Float]
- mesh'vaoId :: Integer
- mesh'vboId :: Maybe [Integer]
- data Shader = Shader {
- shader'id :: Integer
- shader'locs :: [Int]
- data MaterialMap = MaterialMap {}
- data Material = Material {}
- data Transform = Transform {}
- data BoneInfo = BoneInfo {}
- data Model = Model {
- model'transform :: Matrix
- model'meshes :: [Mesh]
- model'materials :: [Material]
- model'meshMaterial :: [Int]
- model'boneCount :: Int
- model'bones :: Maybe [BoneInfo]
- model'bindPose :: Maybe [Transform]
- data ModelAnimation = ModelAnimation {}
- data Ray = Ray {}
- data RayCollision = RayCollision {}
- data BoundingBox = BoundingBox {}
- p'mesh'vertexCount :: Ptr Mesh -> Ptr CInt
- p'mesh'triangleCount :: Ptr Mesh -> Ptr CInt
- p'mesh'vertices :: Ptr Mesh -> Ptr (Ptr Vector3)
- p'mesh'texcoords :: Ptr Mesh -> Ptr (Ptr Vector2)
- p'mesh'texcoords2 :: Ptr Mesh -> Ptr (Ptr Vector2)
- p'mesh'normals :: Ptr Mesh -> Ptr (Ptr Vector3)
- p'mesh'tangents :: Ptr Mesh -> Ptr (Ptr Vector4)
- p'mesh'colors :: Ptr Mesh -> Ptr (Ptr Color)
- p'mesh'indices :: Ptr Mesh -> Ptr (Ptr CUShort)
- p'mesh'animVertices :: Ptr Mesh -> Ptr (Ptr Vector3)
- p'mesh'animNormals :: Ptr Mesh -> Ptr (Ptr Vector3)
- p'mesh'boneIds :: Ptr Mesh -> Ptr (Ptr CUChar)
- p'mesh'boneWeights :: Ptr Mesh -> Ptr (Ptr CFloat)
- p'mesh'vaoId :: Ptr Mesh -> Ptr CUInt
- p'mesh'vboId :: Ptr Mesh -> Ptr (Ptr CUInt)
- p'shader'id :: Ptr Shader -> Ptr CUInt
- p'shader'locs :: Ptr Shader -> Ptr (Ptr CInt)
- p'materialMap'texture :: Ptr MaterialMap -> Ptr Texture
- p'materialMap'color :: Ptr MaterialMap -> Ptr Color
- p'materialMap'value :: Ptr MaterialMap -> Ptr CFloat
- p'material'shader :: Ptr Material -> Ptr Shader
- p'material'maps :: Ptr Material -> Ptr (Ptr MaterialMap)
- p'material'params :: Ptr Material -> Ptr CFloat
- p'transform'translation :: Ptr Transform -> Ptr Vector3
- p'transform'rotation :: Ptr Transform -> Ptr Quaternion
- p'transform'scale :: Ptr Transform -> Ptr Vector3
- p'boneInfo'name :: Ptr BoneInfo -> Ptr CChar
- p'boneInfo'parent :: Ptr BoneInfo -> Ptr CInt
- p'model'transform :: Ptr Model -> Ptr Matrix
- p'model'meshCount :: Ptr Model -> Ptr CInt
- p'model'materialCount :: Ptr Model -> Ptr CInt
- p'model'meshes :: Ptr Model -> Ptr (Ptr Mesh)
- p'model'materials :: Ptr Model -> Ptr (Ptr Material)
- p'model'meshMaterial :: Ptr Model -> Ptr (Ptr CInt)
- p'model'boneCount :: Ptr Model -> Ptr CInt
- p'model'bones :: Ptr Model -> Ptr (Ptr BoneInfo)
- p'model'bindPose :: Ptr Model -> Ptr (Ptr Transform)
- p'modelAnimation'boneCount :: Ptr ModelAnimation -> Ptr CInt
- p'modelAnimation'frameCount :: Ptr ModelAnimation -> Ptr CInt
- p'modelAnimation'bones :: Ptr ModelAnimation -> Ptr (Ptr BoneInfo)
- p'modelAnimation'framePoses :: Ptr ModelAnimation -> Ptr (Ptr (Ptr Transform))
- p'modelAnimation'name :: Ptr ModelAnimation -> Ptr CChar
- p'ray'position :: Ptr Ray -> Ptr Vector3
- p'ray'direction :: Ptr Ray -> Ptr Vector3
- p'rayCollision'hit :: Ptr RayCollision -> Ptr CBool
- p'rayCollision'distance :: Ptr RayCollision -> Ptr CFloat
- p'rayCollision'point :: Ptr RayCollision -> Ptr Vector3
- p'rayCollision'normal :: Ptr RayCollision -> Ptr Vector3
- p'boundingBox'min :: Ptr BoundingBox -> Ptr Vector3
- p'boundingBox'max :: Ptr BoundingBox -> Ptr Vector3
Enumerations
data MaterialMapIndex Source #
Instances
Enum MaterialMapIndex Source # | |
Defined in Raylib.Types.Core.Models succ :: MaterialMapIndex -> MaterialMapIndex # pred :: MaterialMapIndex -> MaterialMapIndex # toEnum :: Int -> MaterialMapIndex # fromEnum :: MaterialMapIndex -> Int # enumFrom :: MaterialMapIndex -> [MaterialMapIndex] # enumFromThen :: MaterialMapIndex -> MaterialMapIndex -> [MaterialMapIndex] # enumFromTo :: MaterialMapIndex -> MaterialMapIndex -> [MaterialMapIndex] # enumFromThenTo :: MaterialMapIndex -> MaterialMapIndex -> MaterialMapIndex -> [MaterialMapIndex] # | |
Show MaterialMapIndex Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> MaterialMapIndex -> ShowS # show :: MaterialMapIndex -> String # showList :: [MaterialMapIndex] -> ShowS # | |
Eq MaterialMapIndex Source # | |
Defined in Raylib.Types.Core.Models (==) :: MaterialMapIndex -> MaterialMapIndex -> Bool # (/=) :: MaterialMapIndex -> MaterialMapIndex -> Bool # |
data ShaderLocationIndex Source #
Instances
Enum ShaderLocationIndex Source # | |
Defined in Raylib.Types.Core.Models succ :: ShaderLocationIndex -> ShaderLocationIndex # pred :: ShaderLocationIndex -> ShaderLocationIndex # toEnum :: Int -> ShaderLocationIndex # fromEnum :: ShaderLocationIndex -> Int # enumFrom :: ShaderLocationIndex -> [ShaderLocationIndex] # enumFromThen :: ShaderLocationIndex -> ShaderLocationIndex -> [ShaderLocationIndex] # enumFromTo :: ShaderLocationIndex -> ShaderLocationIndex -> [ShaderLocationIndex] # enumFromThenTo :: ShaderLocationIndex -> ShaderLocationIndex -> ShaderLocationIndex -> [ShaderLocationIndex] # | |
Show ShaderLocationIndex Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> ShaderLocationIndex -> ShowS # show :: ShaderLocationIndex -> String # showList :: [ShaderLocationIndex] -> ShowS # | |
Eq ShaderLocationIndex Source # | |
Defined in Raylib.Types.Core.Models (==) :: ShaderLocationIndex -> ShaderLocationIndex -> Bool # (/=) :: ShaderLocationIndex -> ShaderLocationIndex -> Bool # |
data ShaderUniformDataType Source #
Instances
data ShaderUniformData Source #
Instances
Show ShaderUniformData Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> ShaderUniformData -> ShowS # show :: ShaderUniformData -> String # showList :: [ShaderUniformData] -> ShowS # | |
Eq ShaderUniformData Source # | |
Defined in Raylib.Types.Core.Models (==) :: ShaderUniformData -> ShaderUniformData -> Bool # (/=) :: ShaderUniformData -> ShaderUniformData -> Bool # |
data ShaderUniformDataV Source #
Instances
Show ShaderUniformDataV Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> ShaderUniformDataV -> ShowS # show :: ShaderUniformDataV -> String # showList :: [ShaderUniformDataV] -> ShowS # | |
Eq ShaderUniformDataV Source # | |
Defined in Raylib.Types.Core.Models (==) :: ShaderUniformDataV -> ShaderUniformDataV -> Bool # (/=) :: ShaderUniformDataV -> ShaderUniformDataV -> Bool # |
unpackShaderUniformData :: ShaderUniformData -> IO (ShaderUniformDataType, ForeignPtr ()) Source #
Internal use
unpackShaderUniformDataV :: ShaderUniformDataV -> IO (ShaderUniformDataType, ForeignPtr (), Int) Source #
Internal use
data ShaderAttributeDataType Source #
Instances
Structures
Mesh | |
|
Shader | |
|
Instances
Storable Shader Source # | |
Show Shader Source # | |
Eq Shader Source # | |
Freeable Shader Source # | |
data MaterialMap Source #
Instances
Storable MaterialMap Source # | |
Defined in Raylib.Types.Core.Models sizeOf :: MaterialMap -> Int # alignment :: MaterialMap -> Int # peekElemOff :: Ptr MaterialMap -> Int -> IO MaterialMap # pokeElemOff :: Ptr MaterialMap -> Int -> MaterialMap -> IO () # peekByteOff :: Ptr b -> Int -> IO MaterialMap # pokeByteOff :: Ptr b -> Int -> MaterialMap -> IO () # peek :: Ptr MaterialMap -> IO MaterialMap # poke :: Ptr MaterialMap -> MaterialMap -> IO () # | |
Show MaterialMap Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> MaterialMap -> ShowS # show :: MaterialMap -> String # showList :: [MaterialMap] -> ShowS # | |
Eq MaterialMap Source # | |
Defined in Raylib.Types.Core.Models (==) :: MaterialMap -> MaterialMap -> Bool # (/=) :: MaterialMap -> MaterialMap -> Bool # | |
Freeable MaterialMap Source # | |
Defined in Raylib.Types.Core.Models rlFreeDependents :: MaterialMap -> Ptr MaterialMap -> IO () Source # rlFree :: MaterialMap -> Ptr MaterialMap -> IO () Source # |
Material | |
|
Instances
Storable Material Source # | |
Defined in Raylib.Types.Core.Models | |
Show Material Source # | |
Eq Material Source # | |
Freeable Material Source # | |
Instances
Storable Transform Source # | |
Defined in Raylib.Types.Core.Models | |
Show Transform Source # | |
Eq Transform Source # | |
Freeable Transform Source # | |
Instances
Storable BoneInfo Source # | |
Defined in Raylib.Types.Core.Models | |
Show BoneInfo Source # | |
Eq BoneInfo Source # | |
Freeable BoneInfo Source # | |
Model | |
|
Instances
Storable Model Source # | |
Show Model Source # | |
Eq Model Source # | |
Freeable Model Source # | |
data ModelAnimation Source #
Instances
data RayCollision Source #
Instances
Storable RayCollision Source # | |
Defined in Raylib.Types.Core.Models sizeOf :: RayCollision -> Int # alignment :: RayCollision -> Int # peekElemOff :: Ptr RayCollision -> Int -> IO RayCollision # pokeElemOff :: Ptr RayCollision -> Int -> RayCollision -> IO () # peekByteOff :: Ptr b -> Int -> IO RayCollision # pokeByteOff :: Ptr b -> Int -> RayCollision -> IO () # peek :: Ptr RayCollision -> IO RayCollision # poke :: Ptr RayCollision -> RayCollision -> IO () # | |
Show RayCollision Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> RayCollision -> ShowS # show :: RayCollision -> String # showList :: [RayCollision] -> ShowS # | |
Eq RayCollision Source # | |
Defined in Raylib.Types.Core.Models (==) :: RayCollision -> RayCollision -> Bool # (/=) :: RayCollision -> RayCollision -> Bool # | |
Freeable RayCollision Source # | |
Defined in Raylib.Types.Core.Models rlFreeDependents :: RayCollision -> Ptr RayCollision -> IO () Source # rlFree :: RayCollision -> Ptr RayCollision -> IO () Source # |
data BoundingBox Source #
Instances
Storable BoundingBox Source # | |
Defined in Raylib.Types.Core.Models sizeOf :: BoundingBox -> Int # alignment :: BoundingBox -> Int # peekElemOff :: Ptr BoundingBox -> Int -> IO BoundingBox # pokeElemOff :: Ptr BoundingBox -> Int -> BoundingBox -> IO () # peekByteOff :: Ptr b -> Int -> IO BoundingBox # pokeByteOff :: Ptr b -> Int -> BoundingBox -> IO () # peek :: Ptr BoundingBox -> IO BoundingBox # poke :: Ptr BoundingBox -> BoundingBox -> IO () # | |
Show BoundingBox Source # | |
Defined in Raylib.Types.Core.Models showsPrec :: Int -> BoundingBox -> ShowS # show :: BoundingBox -> String # showList :: [BoundingBox] -> ShowS # | |
Eq BoundingBox Source # | |
Defined in Raylib.Types.Core.Models (==) :: BoundingBox -> BoundingBox -> Bool # (/=) :: BoundingBox -> BoundingBox -> Bool # | |
Freeable BoundingBox Source # | |
Defined in Raylib.Types.Core.Models rlFreeDependents :: BoundingBox -> Ptr BoundingBox -> IO () Source # rlFree :: BoundingBox -> Ptr BoundingBox -> IO () Source # |
Pointer utilities
p'materialMap'color :: Ptr MaterialMap -> Ptr Color Source #
p'material'maps :: Ptr Material -> Ptr (Ptr MaterialMap) Source #
p'modelAnimation'bones :: Ptr ModelAnimation -> Ptr (Ptr BoneInfo) Source #
p'modelAnimation'framePoses :: Ptr ModelAnimation -> Ptr (Ptr (Ptr Transform)) Source #
p'rayCollision'hit :: Ptr RayCollision -> Ptr CBool Source #
p'boundingBox'min :: Ptr BoundingBox -> Ptr Vector3 Source #
p'boundingBox'max :: Ptr BoundingBox -> Ptr Vector3 Source #