lambdacube-engine-0.2.1: 3D rendering engine written entirely in Haskell

Graphics.LambdaCube.Texture

Documentation

data TextureUsage Source

Constructors

TextureUsage 

Fields

tuUsage :: Usage
 
tuAutoMipmap :: Bool

mipmaps will be automatically generated for this texture

tuRenderTarget :: Bool

this texture will be a render target, i.e. used as a target for render to texture setting this flag will ignore all other texture usages except TU_AUTOMIPMAP

data TextureType Source

Constructors

TEX_TYPE_1D

1D texture, used in combination with 1D texture coordinates

TEX_TYPE_2D

2D texture, used in combination with 2D texture coordinates (default)

TEX_TYPE_3D

3D volume texture, used in combination with 3D texture coordinates

TEX_TYPE_CUBE_MAP

3D cube map, used in combination with 3D texture coordinates

data TextureMipmap Source

Constructors

MIP_UNLIMITED

Generate mipmaps up to 1x1

MIP_DEFAULT

Use TextureManager default

MIP_NUMBER Int