| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Raylib.Types.Util.RLGL
Description
Bindings for types used in rlgl
Synopsis
- data RLGLVersion
- data RLTraceLogLevel
- data RLPixelFormat
- = RLPixelFormatUncompressedGrayscale
- | RLPixelFormatUncompressedGrayAlpha
- | RLPixelFormatUncompressedR5G6B5
- | RLPixelFormatUncompressedR8G8B8
- | RLPixelFormatUncompressedR5G5B5A1
- | RLPixelFormatUncompressedR4G4B4A4
- | RLPixelFormatUncompressedR8G8B8A8
- | RLPixelFormatUncompressedR32
- | RLPixelFormatUncompressedR32G32B32
- | RLPixelFormatUncompressedR32G32B32A32
- | RLPixelFormatUncompressedR16
- | RLPixelFormatUncompressedR16G16B16
- | RLPixelFormatUncompressedR16G16B16A16
- | RLPixelFormatCompressedDxt1Rgb
- | RLPixelFormatCompressedDxt1Rgba
- | RLPixelFormatCompressedDxt3Rgba
- | RLPixelFormatCompressedDxt5Rgba
- | RLPixelFormatCompressedEtc1Rgb
- | RLPixelFormatCompressedEtc2Rgb
- | RLPixelFormatCompressedEtc2EacRgba
- | RLPixelFormatCompressedPvrtRgb
- | RLPixelFormatCompressedPvrtRgba
- | RLPixelFormatCompressedAstc4x4Rgba
- | RLPixelFormatCompressedAstc8x8Rgba
- data RLTextureFilter
- data RLBlendMode
- data RLShaderLocationIndex
- = RLShaderLocVertexPosition
- | RLShaderLocVertexTexcoord01
- | RLShaderLocVertexTexcoord02
- | RLShaderLocVertexNormal
- | RLShaderLocVertexTangent
- | RLShaderLocVertexColor
- | RLShaderLocMatrixMVP
- | RLShaderLocMatrixView
- | RLShaderLocMatrixProjection
- | RLShaderLocMatrixModel
- | RLShaderLocMatrixNormal
- | RLShaderLocVectorView
- | RLShaderLocColorDiffuse
- | RLShaderLocColorSpecular
- | RLShaderLocColorAmbient
- | RLShaderLocMapAlbedo
- | RLShaderLocMapMetalness
- | RLShaderLocMapNormal
- | RLShaderLocMapRoughness
- | RLShaderLocMapOcclusion
- | RLShaderLocMapEmission
- | RLShaderLocMapHeight
- | RLShaderLocMapCubemap
- | RLShaderLocMapIrradiance
- | RLShaderLocMapPrefilter
- | RLShaderLocMapBRDF
- data RLShaderUniformDataType
- data RLShaderAttributeDataType
- data RLFramebufferAttachType
- data RLFramebufferAttachTextureType
- data RLCullMode
- data RLMatrixMode
- data RLDrawMode
- data RLTextureParam
- = RLTextureParamWrapS
- | RLTextureParamWrapT
- | RLTextureParamMagFilter
- | RLTextureParamMinFilter
- | RLTextureParamFilterNearest
- | RLTextureParamFilterLinear
- | RLTextureParamFilterMipNearest
- | RLTextureParamFilterNearestMipLinear
- | RLTextureParamFilterLinearMipNearest
- | RLTextureParamFilterMipLinear
- | RLTextureParamFilterAnisotropic
- | RLTextureParamMipmapBiasRatio
- data RLShaderType
- data RLBufferHint
- data RLBitField
- data RLVertexBuffer = RLVertexBuffer {}
- data RLDrawCall = RLDrawCall {}
- data RLRenderBatch = RLRenderBatch {}
- p'rlVertexBuffer'elementCount :: Ptr RLVertexBuffer -> Ptr CInt
- p'rlVertexBuffer'vertices :: Ptr RLVertexBuffer -> Ptr (Ptr Vector3)
- p'rlVertexBuffer'texcoords :: Ptr RLVertexBuffer -> Ptr (Ptr Vector2)
- p'rlVertexBuffer'colors :: Ptr RLVertexBuffer -> Ptr (Ptr Color)
- p'rlVertexBuffer'indices :: Ptr RLVertexBuffer -> Ptr (Ptr CUInt)
- p'rlVertexBuffer'vaoId :: Ptr RLVertexBuffer -> Ptr CUInt
- p'rlVertexBuffer'vboId :: Ptr RLVertexBuffer -> Ptr CUInt
- p'rlDrawCall'mode :: Ptr RLDrawCall -> Ptr RLDrawMode
- p'rlDrawCall'vertexCount :: Ptr RLDrawCall -> Ptr CInt
- p'rlDrawCall'vertexAlignment :: Ptr RLDrawCall -> Ptr CInt
- p'rlDrawCall'textureId :: Ptr RLDrawCall -> Ptr CUInt
- p'rlRenderBatch'bufferCount :: Ptr RLRenderBatch -> Ptr CInt
- p'rlRenderBatch'currentBuffer :: Ptr RLRenderBatch -> Ptr CInt
- p'rlRenderBatch'vertexBuffers :: Ptr RLRenderBatch -> Ptr (Ptr RLVertexBuffer)
- p'rlRenderBatch'draws :: Ptr RLRenderBatch -> Ptr (Ptr RLDrawCall)
- p'rlRenderBatch'drawCounter :: Ptr RLRenderBatch -> Ptr CInt
- p'rlRenderBatch'currentDepth :: Ptr RLRenderBatch -> Ptr CFloat
Enumerations
data RLGLVersion Source #
OpenGL version
Constructors
| RLOpenGL11 | OpenGL 1.1 |
| RLOpenGL21 | OpenGL 2.1 (GLSL 120) |
| RLOpenGL33 | OpenGL 3.3 (GLSL 330) |
| RLOpenGL43 | OpenGL 4.3 (using GLSL 330) |
| RLOpenGLES20 | OpenGL ES 2.0 (GLSL 100) |
Instances
data RLTraceLogLevel Source #
Trace log level. NOTE: Organized by priority level
Constructors
| RLLogAll | Display all logs |
| RLLogTrace | Trace logging, intended for internal use only |
| RLLogDebug | Debug logging, used for internal debugging, it should be disabled on release builds |
| RLLogInfo | Info logging, used for program execution info |
| RLLogWarning | Warning logging, used on recoverable failures |
| RLLogError | Error logging, used on unrecoverable failures |
| RLLogFatal | Fatal logging, used to abort program: exit(EXIT_FAILURE) |
| RLLogNone | Disable logging |
Instances
data RLPixelFormat Source #
Texture pixel formats. NOTE: Support depends on OpenGL version
Constructors
Instances
data RLTextureFilter Source #
Texture parameters: filter mode. NOTE 1: Filtering considers mipmaps if available in the texture. NOTE 2: Filter is accordingly set for minification and magnification.
Constructors
| RLTextureFilterPoint | No filter, just pixel approximation |
| RLTextureFilterBilinear | Linear filtering |
| RLTextureFilterTrilinear | Trilinear filtering (linear with mipmaps) |
| RLTextureFilterAnisotropic4x | Anisotropic filtering 4x |
| RLTextureFilterAnisotropic8x | Anisotropic filtering 8x |
| RLTextureFilterAnisotropic16x | Anisotropic filtering 16x |
Instances
data RLBlendMode Source #
Color blending modes (pre-defined)
Constructors
| RlBlendAlpha | Blend textures considering alpha (default) |
| RlBlendAdditive | Blend textures adding colors |
| RlBlendMultiplied | Blend textures multiplying colors |
| RlBlendAddColors | Blend textures adding colors (alternative) |
| RlBlendSubtractColors | Blend textures subtracting colors (alternative) |
| RlBlendAlphaPremultiply | Blend premultiplied textures considering alpha |
| RlBlendCustom | Blend textures using custom src/dst factors (use rlSetBlendFactors()) |
| RlBlendCustomSeparate | Blend textures using custom src/dst factors (use rlSetBlendFactorsSeparate()) |
Instances
data RLShaderLocationIndex Source #
Shader location point type
Constructors
| RLShaderLocVertexPosition | Shader location: vertex attribute: position |
| RLShaderLocVertexTexcoord01 | Shader location: vertex attribute: texcoord01 |
| RLShaderLocVertexTexcoord02 | Shader location: vertex attribute: texcoord02 |
| RLShaderLocVertexNormal | Shader location: vertex attribute: normal |
| RLShaderLocVertexTangent | Shader location: vertex attribute: tangent |
| RLShaderLocVertexColor | Shader location: vertex attribute: color |
| RLShaderLocMatrixMVP | Shader location: matrix uniform: model-view-projection |
| RLShaderLocMatrixView | Shader location: matrix uniform: view (camera transform) |
| RLShaderLocMatrixProjection | Shader location: matrix uniform: projection |
| RLShaderLocMatrixModel | Shader location: matrix uniform: model (transform) |
| RLShaderLocMatrixNormal | Shader location: matrix uniform: normal |
| RLShaderLocVectorView | Shader location: vector uniform: view |
| RLShaderLocColorDiffuse | Shader location: vector uniform: diffuse color |
| RLShaderLocColorSpecular | Shader location: vector uniform: specular color |
| RLShaderLocColorAmbient | Shader location: vector uniform: ambient color |
| RLShaderLocMapAlbedo | Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE) |
| RLShaderLocMapMetalness | Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR) |
| RLShaderLocMapNormal | Shader location: sampler2d texture: normal |
| RLShaderLocMapRoughness | Shader location: sampler2d texture: roughness |
| RLShaderLocMapOcclusion | Shader location: sampler2d texture: occlusion |
| RLShaderLocMapEmission | Shader location: sampler2d texture: emission |
| RLShaderLocMapHeight | Shader location: sampler2d texture: height |
| RLShaderLocMapCubemap | Shader location: samplerCube texture: cubemap |
| RLShaderLocMapIrradiance | Shader location: samplerCube texture: irradiance |
| RLShaderLocMapPrefilter | Shader location: samplerCube texture: prefilter |
| RLShaderLocMapBRDF | Shader location: sampler2d texture: brdf |
Instances
data RLShaderUniformDataType Source #
Shader uniform data type
Constructors
| RLShaderUniformFloat | Shader uniform type: float |
| RLShaderUniformVec2 | Shader uniform type: vec2 (2 float) |
| RLShaderUniformVec3 | Shader uniform type: vec3 (3 float) |
| RLShaderUniformVec4 | Shader uniform type: vec4 (4 float) |
| RLShaderUniformInt | Shader uniform type: int |
| RLShaderUniformIVec2 | Shader uniform type: ivec2 (2 int) |
| RLShaderUniformIVec3 | Shader uniform type: ivec3 (3 int) |
| RLShaderUniformIVec4 | Shader uniform type: ivec4 (4 int) |
| RLShaderUniformSampler2D | Shader uniform type: sampler2d |
Instances
data RLShaderAttributeDataType Source #
Shader attribute data types
Constructors
| RLShaderAttribFloat | Shader attribute type: float |
| RLShaderAttribVec2 | Shader attribute type: vec2 (2 float) |
| RLShaderAttribVec3 | Shader attribute type: vec3 (3 float) |
| RLShaderAttribVec4 | Shader attribute type: vec4 (4 float) |
Instances
data RLFramebufferAttachType Source #
Framebuffer attachment type. NOTE: By default up to 8 color channels are defined, but it can be more
Constructors
| RLAttachmentColorChannel0 | Framebuffer attachment type: color 0 |
| RLAttachmentColorChannel1 | Framebuffer attachment type: color 1 |
| RLAttachmentColorChannel2 | Framebuffer attachment type: color 2 |
| RLAttachmentColorChannel3 | Framebuffer attachment type: color 3 |
| RLAttachmentColorChannel4 | Framebuffer attachment type: color 4 |
| RLAttachmentColorChannel5 | Framebuffer attachment type: color 5 |
| RLAttachmentColorChannel6 | Framebuffer attachment type: color 6 |
| RLAttachmentColorChannel7 | Framebuffer attachment type: color 7 |
| RLAttachmentDepth | Framebuffer attachment type: depth |
| RLAttachmentStencil | Framebuffer attachment type: stencil |
Instances
data RLFramebufferAttachTextureType Source #
Framebuffer texture attachment type
Constructors
| RLAttachmentCubemapPositiveX | Framebuffer texture attachment type: cubemap, +X side |
| RLAttachmentCubemapNegativeX | Framebuffer texture attachment type: cubemap, -X side |
| RLAttachmentCubemapPositiveY | Framebuffer texture attachment type: cubemap, +Y side |
| RLAttachmentCubemapNegativeY | Framebuffer texture attachment type: cubemap, -Y side |
| RLAttachmentCubemapPositiveZ | Framebuffer texture attachment type: cubemap, +Z side |
| RLAttachmentCubemapNegativeZ | Framebuffer texture attachment type: cubemap, -Z side |
| RLAttachmentTexture2D | Framebuffer texture attachment type: texture2d |
| RLAttachmentRenderBuffer | Framebuffer texture attachment type: renderbuffer |
Instances
data RLCullMode Source #
Face culling mode
Constructors
| RLCullFaceFront | |
| RLCullFaceBack |
Instances
data RLMatrixMode Source #
Matrix modes (equivalent to OpenGL)
Constructors
| RLModelView | GL_MODELVIEW |
| RLProjection | GL_PROJECTION |
| RLTexture | GL_TEXTURE |
Instances
data RLDrawMode Source #
Primitive assembly draw modes
Constructors
| RLLines | GL_LINES |
| RLTriangles | GL_TRIANGLES |
| RLQuads | GL_QUADS |
Instances
data RLTextureParam Source #
Texture parameters (equivalent to OpenGL defines)
Constructors
| RLTextureParamWrapS | GL_TEXTURE_WRAP_S |
| RLTextureParamWrapT | GL_TEXTURE_WRAP_T |
| RLTextureParamMagFilter | GL_TEXTURE_MAG_FILTER |
| RLTextureParamMinFilter | GL_TEXTURE_MIN_FILTER |
| RLTextureParamFilterNearest | GL_NEAREST |
| RLTextureParamFilterLinear | GL_LINEAR |
| RLTextureParamFilterMipNearest | GL_NEAREST_MIPMAP_NEAREST |
| RLTextureParamFilterNearestMipLinear | GL_NEAREST_MIPMAP_LINEAR |
| RLTextureParamFilterLinearMipNearest | GL_LINEAR_MIPMAP_NEAREST |
| RLTextureParamFilterMipLinear | GL_LINEAR_MIPMAP_LINEAR |
| RLTextureParamFilterAnisotropic | Anisotropic filter (custom identifier) |
| RLTextureParamMipmapBiasRatio | Texture mipmap bias, percentage ratio (custom identifier) |
Instances
data RLShaderType Source #
OpenGL shader type
Constructors
| RLFragmentShader | GL_FRAGMENT_SHADER |
| RLVertexShader | GL_VERTEX_SHADER |
| RLComputeShader | GL_COMPUTE_SHADER |
Instances
data RLBufferHint Source #
GL buffer usage hint
Constructors
| RLBufferHintStreamDraw | GL_STREAM_DRAW |
| RLBufferHintStreamRead | GL_STREAM_READ |
| RLBufferHintStreamCopy | GL_STREAM_COPY |
| RLBufferHintStaticDraw | GL_STATIC_DRAW |
| RLBufferHintStaticRead | GL_STATIC_READ |
| RLBufferHintStaticCopy | GL_STATIC_COPY |
| RLBufferHintDynamicDraw | GL_DYNAMIC_DRAW |
| RLBufferHintDynamicRead | GL_DYNAMIC_READ |
| RLBufferHintDynamicCopy | GL_DYNAMIC_COPY |
Instances
data RLBitField Source #
GL buffer mask
Constructors
| RLGLColorBuffer | GL_COLOR_BUFFER_BIT |
| RLGLDepthBuffer | GL_DEPTH_BUFFER_BIT |
| RLGLStencilBuffer | GL_STENCIL_BUFFER_BIT |
Instances
Structures
data RLVertexBuffer Source #
Dynamic vertex buffers (position + texcoords + colors + indices arrays)
Constructors
| RLVertexBuffer | |
Fields
| |
Instances
data RLDrawCall Source #
Draw call type.
NOTE: Only texture changes register a new draw, other state-change-related elements are not used at this moment (vaoId, shaderId, matrices), raylib just forces a batch draw call if any of those state changes happen (this is done in the core module).
Constructors
| RLDrawCall | |
Fields
| |
Instances
| Storable RLDrawCall Source # | |
Defined in Raylib.Types.Util.RLGL Methods sizeOf :: RLDrawCall -> Int # alignment :: RLDrawCall -> Int # peekElemOff :: Ptr RLDrawCall -> Int -> IO RLDrawCall # pokeElemOff :: Ptr RLDrawCall -> Int -> RLDrawCall -> IO () # peekByteOff :: Ptr b -> Int -> IO RLDrawCall # pokeByteOff :: Ptr b -> Int -> RLDrawCall -> IO () # peek :: Ptr RLDrawCall -> IO RLDrawCall # poke :: Ptr RLDrawCall -> RLDrawCall -> IO () # | |
| Show RLDrawCall Source # | |
Defined in Raylib.Types.Util.RLGL Methods showsPrec :: Int -> RLDrawCall -> ShowS # show :: RLDrawCall -> String # showList :: [RLDrawCall] -> ShowS # | |
| Eq RLDrawCall Source # | |
Defined in Raylib.Types.Util.RLGL | |
| Freeable RLDrawCall Source # | |
Defined in Raylib.Types.Util.RLGL Methods rlFreeDependents :: RLDrawCall -> Ptr RLDrawCall -> IO () Source # rlFree :: RLDrawCall -> Ptr RLDrawCall -> IO () Source # | |
data RLRenderBatch Source #
Constructors
| RLRenderBatch | |
Fields
| |
Instances
Pointer utilities
p'rlVertexBuffer'colors :: Ptr RLVertexBuffer -> Ptr (Ptr Color) Source #
p'rlVertexBuffer'indices :: Ptr RLVertexBuffer -> Ptr (Ptr CUInt) Source #
p'rlRenderBatch'draws :: Ptr RLRenderBatch -> Ptr (Ptr RLDrawCall) Source #