moduleGraphics.LambdaCube.TexturewhereimportGraphics.LambdaCube.HardwareBufferimportGraphics.LambdaCube.PixelFormatimportGraphics.LambdaCube.TypesdataTextureUsage=TextureUsage{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}deriving(Eq,Ord)dataTextureType=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 coordinatesderiving(Eq,Ord,Show)dataTextureMipmap=MIP_UNLIMITED-- ^ Generate mipmaps up to 1x1|MIP_DEFAULT-- ^ Use TextureManager default|MIP_NUMBERIntderiving(Eq,Ord)class(Eqa,HardwareBuffera)=>TextureawheretxName::a->StringtxWidth::a->InttxHeight::a->InttxDepth::a->InttxNumRequestedMipmaps::a->TextureMipmaptxNumMipmaps::a->InttxMipmapsHardwareGenerated::a->BooltxGamma::a->FloatTypetxHwGamma::a->BooltxFSAA::a->InttxFSAAHint::a->StringtxTextureType::a->TextureTypetxFormat::a->PixelFormat-- txUsage :: a -> TextureUsage-- txAutoMipmap :: a -> Bool -- ^ mipmaps will be automatically generated for this texture-- txRenderTarget :: a -> 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_AUTOMIPMAPtxSrcFormat::a->PixelFormattxSrcWidth::a->InttxSrcHeight::a->InttxSrcDepth::a->InttxDesiredFormat::a->PixelFormattxDesiredIntegerBitDepth::a->InttxDesiredFloatBitDepth::a->InttxTreatLuminanceAsAlpha::a->Bool