fwgl-0.1.2.0: FRP 2D/3D game engine

Safe HaskellSafe-Inferred
LanguageHaskell2010

FWGL.Shader.Language

Synopsis

Documentation

newtype Sampler2D Source

A GPU sampler (sampler2D in GLSL).

Constructors

Sampler2D Expr 

data V2 Source

A GPU 2D vector. NB: This is a different type from FWGL.Vector.V2.

Constructors

V2 Float Float 

data V3 Source

A GPU 3D vector.

Constructors

V3 Float Float Float 

data V4 Source

A GPU 4D vector.

Constructors

V4 Float Float Float Float 

data M2 Source

A GPU 2x2 matrix.

Constructors

M2 V2 V2 

data M3 Source

A GPU 3x3 matrix.

Constructors

M3 V3 V3 V3 

data M4 Source

A GPU 4x4 matrix.

Constructors

M4 V4 V4 V4 V4 

class Mul a b c | a b -> c Source

Types that can be multiplied.

(*) :: (Mul a b c, ShaderType a, ShaderType b, ShaderType c) => a -> b -> c infixl 7 Source

(/) :: (Mul a b c, ShaderType a, ShaderType b, ShaderType c) => a -> b -> c infixl 7 Source

class Sum a Source

Types that can be added.

Instances

(+) :: (Sum a, ShaderType a) => a -> a -> a infixl 6 Source

(-) :: (Sum a, ShaderType a) => a -> a -> a infixl 6 Source

(^) :: (ShaderType a, ShaderType b) => a -> b -> a infixr 8 Source

(&&) :: Bool -> Bool -> Bool infixr 3 Source

(||) :: Bool -> Bool -> Bool infixr 2 Source

(==) :: ShaderType a => a -> a -> Bool infix 4 Source

(>=) :: ShaderType a => a -> a -> Bool infix 4 Source

(<=) :: ShaderType a => a -> a -> Bool infix 4 Source

(<) :: ShaderType a => a -> a -> Bool infix 4 Source

(>) :: ShaderType a => a -> a -> Bool infix 4 Source