Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Typeable g => UniformCPU c g | g -> c where
- setUniform :: UniformLocation -> g -> c -> GL ()
- class Typeable g => AttributeCPU c g | g -> c where
- encodeAttribute :: g -> [c] -> GL Array
- setAttribute :: g -> GLUInt -> GL ()
Documentation
class Typeable g => UniformCPU c g | g -> c where Source
CPU types convertible to GPU types (as uniforms).
setUniform :: UniformLocation -> g -> c -> GL () Source
GLES => UniformCPU Float Float | |
GLES => UniformCPU Vec2 Vec2 | |
GLES => UniformCPU Vec3 Vec3 | |
GLES => UniformCPU Vec4 Vec4 | |
GLES => UniformCPU Mat2 Mat2 | |
GLES => UniformCPU Mat3 Mat3 | |
GLES => UniformCPU Mat4 Mat4 | |
GLES => UniformCPU ActiveTexture Sampler2D | |
GLES => UniformCPU CMat4 View3 | |
GLES => UniformCPU CMat4 Transform3 | |
GLES => UniformCPU CMat3 View2 | |
GLES => UniformCPU CMat3 Transform2 | |
GLES => UniformCPU CSampler2D Image | |
GLES => UniformCPU CSampler2D Texture2 | |
GLES => UniformCPU CFloat Depth |
class Typeable g => AttributeCPU c g | g -> c where Source
CPU types convertible to GPU types (as attributes).
encodeAttribute :: g -> [c] -> GL Array Source
setAttribute :: g -> GLUInt -> GL () Source
GLES => AttributeCPU Float Float | |
GLES => AttributeCPU Vec2 Vec2 | |
GLES => AttributeCPU Vec3 Vec3 | |
GLES => AttributeCPU Vec4 Vec4 | |
GLES => AttributeCPU CVec3 Normal3 | |
GLES => AttributeCPU CVec3 Position3 | |
GLES => AttributeCPU CVec2 UV | |
GLES => AttributeCPU CVec2 Position2 | |
GLES => AttributeCPU CVec2 UV |