caramia-0.2.0.1: Less painful OpenGL 3.3 rendering

Safe HaskellNone
LanguageHaskell2010

Graphics.Caramia.Texture.Internal

Synopsis

Documentation

newtype Texture_ Source

Constructors

Texture_ GLuint 

type TextureUnit = Int Source

The type of a texture unit.

The minimum valid value is 0 and maximum is implementation dependant but in OpenGL at least 48 units will work at the same time in shaders.

data TextureSpecification Source

Specification on what the texture should be like.

Use textureSpecification and set at least topology and imageFormat. Future minor versions remain compatible if you use textureSpecification instead of the constructor directly.

Constructors

TextureSpecification 

Fields

topology :: Topology
 
imageFormat :: ImageFormat
 
mipmapLevels :: Int

How many mipmap levels including the base level? Must be at least 1.

Ignored and not evaluated for multisampling textures.