summaryrefslogtreecommitdiff
path: root/src/LambdaCube/GL/Input/Type.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LambdaCube/GL/Input/Type.hs')
-rw-r--r--src/LambdaCube/GL/Input/Type.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/LambdaCube/GL/Input/Type.hs b/src/LambdaCube/GL/Input/Type.hs
index eaadce5..5afe5af 100644
--- a/src/LambdaCube/GL/Input/Type.hs
+++ b/src/LambdaCube/GL/Input/Type.hs
@@ -525,3 +525,25 @@ glABI TypeM44F = IsGLMatrix GLPrimFloat
525withTypes :: p (a::k) -> q (b::k) -> f a b -> f a b 525withTypes :: p (a::k) -> q (b::k) -> f a b -> f a b
526withTypes _ _ x = x 526withTypes _ _ x = x
527 527
528class TypeTaggable c where typeTag :: t c -> TypeTag c
529instance TypeTaggable (GLVector 1 Word32) where typeTag _ = TypeWord
530instance TypeTaggable (GLVector 2 Word32) where typeTag _ = TypeV2U
531instance TypeTaggable (GLVector 3 Word32) where typeTag _ = TypeV3U
532instance TypeTaggable (GLVector 4 Word32) where typeTag _ = TypeV4U
533instance TypeTaggable (GLVector 1 Int32) where typeTag _ = TypeInt
534instance TypeTaggable (GLVector 2 Int32) where typeTag _ = TypeV2I
535instance TypeTaggable (GLVector 3 Int32) where typeTag _ = TypeV3I
536instance TypeTaggable (GLVector 4 Int32) where typeTag _ = TypeV4I
537instance TypeTaggable (GLVector 1 Float) where typeTag _ = TypeFloat
538instance TypeTaggable (GLVector 2 Float) where typeTag _ = TypeV2F
539instance TypeTaggable (GLVector 3 Float) where typeTag _ = TypeV3F
540instance TypeTaggable (GLVector 4 Float) where typeTag _ = TypeV4F
541instance TypeTaggable (GLMatrix 2 2 Float) where typeTag _ = TypeM22F
542instance TypeTaggable (GLMatrix 3 2 Float) where typeTag _ = TypeM23F
543instance TypeTaggable (GLMatrix 4 2 Float) where typeTag _ = TypeM24F
544instance TypeTaggable (GLMatrix 2 3 Float) where typeTag _ = TypeM32F
545instance TypeTaggable (GLMatrix 3 3 Float) where typeTag _ = TypeM33F
546instance TypeTaggable (GLMatrix 4 3 Float) where typeTag _ = TypeM34F
547instance TypeTaggable (GLMatrix 2 4 Float) where typeTag _ = TypeM42F
548instance TypeTaggable (GLMatrix 3 4 Float) where typeTag _ = TypeM43F
549instance TypeTaggable (GLMatrix 4 4 Float) where typeTag _ = TypeM44F