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

Raylib.Types.Util.RLGL

Description

Bindings for types used in rlgl

Synopsis

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)

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

data RLPixelFormat Source #

Texture pixel formats. NOTE: Support depends on OpenGL version

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

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())

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

Instances details
Storable RLShaderLocationIndex Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Enum RLShaderLocationIndex Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Show RLShaderLocationIndex Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Eq RLShaderLocationIndex Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

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

Instances details
Storable RLShaderUniformDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Enum RLShaderUniformDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Show RLShaderUniformDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Eq RLShaderUniformDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

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

Instances details
Storable RLShaderAttributeDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Enum RLShaderAttributeDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Show RLShaderAttributeDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Eq RLShaderAttributeDataType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

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

Instances details
Storable RLFramebufferAttachType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Enum RLFramebufferAttachType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Show RLFramebufferAttachType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Eq RLFramebufferAttachType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

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

Instances details
Storable RLFramebufferAttachTextureType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Enum RLFramebufferAttachTextureType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Show RLFramebufferAttachTextureType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

Eq RLFramebufferAttachTextureType Source # 
Instance details

Defined in Raylib.Types.Util.RLGL

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)

data RLShaderType Source #

OpenGL shader type

Constructors

RLFragmentShader

GL_FRAGMENT_SHADER

RLVertexShader

GL_VERTEX_SHADER

RLComputeShader

GL_COMPUTE_SHADER

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

Structures

data RLVertexBuffer Source #

Dynamic vertex buffers (position + texcoords + colors + indices arrays)

Constructors

RLVertexBuffer 

Fields

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

data RLRenderBatch Source #

Constructors

RLRenderBatch 

Fields

Pointer utilities