summaryrefslogtreecommitdiff
path: root/src/LambdaCube/GL.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LambdaCube/GL.hs')
-rw-r--r--src/LambdaCube/GL.hs89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/LambdaCube/GL.hs b/src/LambdaCube/GL.hs
new file mode 100644
index 0000000..37ba205
--- /dev/null
+++ b/src/LambdaCube/GL.hs
@@ -0,0 +1,89 @@
1module LambdaCube.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 uploadTexture2DToGPU,
26 uploadTexture2DToGPU',
27
28 -- GL: Renderer, Storage, Object
29 GLRenderer,
30 GLStorage,
31 Object,
32 PipelineSchema(..),
33 SlotSchema(..),
34 schema,
35 schemaFromPipeline,
36 allocRenderer,
37 disposeRenderer,
38 setStorage,
39 renderFrame,
40 allocStorage,
41 disposeStorage,
42 uniformSetter,
43 addObject,
44 removeObject,
45 enableObject,
46 setObjectOrder,
47 objectUniformSetter,
48 setScreenSize,
49 sortSlotObjects,
50
51 uniformBool,
52 uniformV2B,
53 uniformV3B,
54 uniformV4B,
55
56 uniformWord,
57 uniformV2U,
58 uniformV3U,
59 uniformV4U,
60
61 uniformInt,
62 uniformV2I,
63 uniformV3I,
64 uniformV4I,
65
66 uniformFloat,
67 uniformV2F,
68 uniformV3F,
69 uniformV4F,
70
71 uniformM22F,
72 uniformM23F,
73 uniformM24F,
74 uniformM32F,
75 uniformM33F,
76 uniformM34F,
77 uniformM42F,
78 uniformM43F,
79 uniformM44F,
80
81 uniformFTexture2D
82) where
83
84import LambdaCube.GL.Type
85import LambdaCube.GL.Backend
86import LambdaCube.GL.Data
87import LambdaCube.GL.Input
88import IR
89import Linear