summaryrefslogtreecommitdiff
path: root/Backend/GL.hs
diff options
context:
space:
mode:
authorCsaba Hruska <csaba.hruska@gmail.com>2015-04-30 14:28:27 +0200
committerCsaba Hruska <csaba.hruska@gmail.com>2015-05-18 14:50:52 +0200
commit91f82aca82dc282d5630c1bddd8dc773c679cc76 (patch)
tree6060474da94e6fb8a1f46eebd0cba0c5a607cbd3 /Backend/GL.hs
parent1d047c6fa195901dc149bdbe4b4d0497c9b5f9c6 (diff)
split dsl compiler and ir backend
Diffstat (limited to 'Backend/GL.hs')
-rw-r--r--Backend/GL.hs86
1 files changed, 86 insertions, 0 deletions
diff --git a/Backend/GL.hs b/Backend/GL.hs
new file mode 100644
index 0000000..04d5dde
--- /dev/null
+++ b/Backend/GL.hs
@@ -0,0 +1,86 @@
1module Backend.GL (
2 -- IR
3 V2(..),V3(..),V4(..),
4 -- Array, Buffer, Texture
5 Array(..),
6 ArrayType(..),
7 Buffer,
8 BufferSetter,
9 IndexStream(..),
10 Stream(..),
11 StreamSetter,
12 StreamType(..),
13 Primitive(..),
14 SetterFun,
15 TextureData,
16 InputSetter(..),
17 fromStreamType,
18 sizeOfArrayType,
19 toStreamType,
20 compileBuffer,
21 updateBuffer,
22 bufferSize,
23 arraySize,
24 arrayType,
25 compileTexture2DRGBAF,
26
27 -- GL Pipeline Input, Object
28 GLPipeline,
29 GLPipelineInput,
30 Object,
31 PipelineSchema(..),
32 SlotSchema(..),
33 schema,
34 schemaFromPipeline,
35 allocPipeline,
36 disposePipeline,
37 setPipelineInput,
38 renderPipeline,
39 mkGLPipelineInput,
40 uniformSetter,
41 addObject,
42 removeObject,
43 enableObject,
44 setObjectOrder,
45 objectUniformSetter,
46 setScreenSize,
47 sortSlotObjects,
48
49 uniformBool,
50 uniformV2B,
51 uniformV3B,
52 uniformV4B,
53
54 uniformWord,
55 uniformV2U,
56 uniformV3U,
57 uniformV4U,
58
59 uniformInt,
60 uniformV2I,
61 uniformV3I,
62 uniformV4I,
63
64 uniformFloat,
65 uniformV2F,
66 uniformV3F,
67 uniformV4F,
68
69 uniformM22F,
70 uniformM23F,
71 uniformM24F,
72 uniformM32F,
73 uniformM33F,
74 uniformM34F,
75 uniformM42F,
76 uniformM43F,
77 uniformM44F,
78
79 uniformFTexture2D
80) where
81
82import Backend.GL.Type
83import Backend.GL.Backend
84import Backend.GL.Data
85import Backend.GL.Input
86import IR \ No newline at end of file