File tree Expand file tree Collapse file tree 5 files changed +16
-9
lines changed
src/Graphics/Rendering/OpenGL/Raw Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change
1
+ 2.6.0.0
2
+ -------
3
+ * Use the ` Half ` type from the ` half ` package.
4
+
1
5
2.5.5.0
2
6
-------
3
7
* Added retrieval of version info and extensions.
Original file line number Diff line number Diff line change 1
1
name : OpenGLRaw
2
- version : 2.5.5 .0
2
+ version : 2.6.0 .0
3
3
synopsis : A raw binding for the OpenGL graphics system
4
4
description :
5
5
OpenGLRaw is a raw Haskell binding for the OpenGL 4.5 graphics system and
@@ -602,12 +602,12 @@ library
602
602
cbits/HsOpenGLRaw.c
603
603
hs-source-dirs : src
604
604
build-depends :
605
- base >= 4 && < 5 ,
606
- bytestring >= 0.9 && < 0.11 ,
607
- containers >= 0.3 && < 0.6 ,
605
+ base >= 4 && < 5 ,
606
+ bytestring >= 0.9 && < 0.11 ,
607
+ containers >= 0.3 && < 0.6 ,
608
608
half >= 0.2.2.1 && < 0.3 ,
609
- text >= 0.1 && < 1.3 ,
610
- transformers >= 0.2 && < 0.5
609
+ text >= 0.1 && < 1.3 ,
610
+ transformers >= 0.2 && < 0.5
611
611
default-language : Haskell2010
612
612
ghc-options : -Wall
613
613
other-extensions : CPP
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ printForeign sigMap = do
161
161
SI. hPutStrLn h " import Foreign.C.Types"
162
162
SI. hPutStrLn h " import Foreign.Ptr"
163
163
SI. hPutStrLn h $ " import " ++ moduleNameFor [" Types" ]
164
+ SI. hPutStrLn h " import Numeric.Half"
164
165
SI. hPutStrLn h " "
165
166
mapM_ (SI. hPutStrLn h . uncurry makeImportDynamic) (M. assocs sigMap)
166
167
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ module Graphics.Rendering.OpenGL.Raw.Foreign where
19
19
import Foreign.C.Types
20
20
import Foreign.Ptr
21
21
import Graphics.Rendering.OpenGL.Raw.Types
22
+ import Numeric.Half
22
23
23
24
foreign import CALLCONV " dynamic" dyn201
24
25
:: FunPtr (GLDEBUGPROC -> Ptr a -> IO () )
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ import Data.Int
63
63
import Data.Word
64
64
import Foreign.C.Types
65
65
import Foreign.Ptr
66
+ import Numeric.Half
66
67
67
68
--------------------------------------------------------------------------------
68
69
@@ -121,7 +122,7 @@ type GLsync = Ptr ()
121
122
type GLbitfield = CUInt
122
123
123
124
-- | 16bit half-precision floating-point value encoded in an unsigned scalar.
124
- type GLhalf = CUShort
125
+ type GLhalf = Half
125
126
126
127
-- | 32bit floating-point value.
127
128
type GLfloat = CFloat
@@ -167,9 +168,9 @@ type GLintptrARB = CPtrdiff
167
168
168
169
type GLsizeiptrARB = CPtrdiff
169
170
170
- type GLhalfARB = CUShort
171
+ type GLhalfARB = Half
171
172
172
- type GLhalfNV = CUShort
173
+ type GLhalfNV = Half
173
174
174
175
type GLDEBUGPROCAMD = FunPtr GLDEBUGPROCAMDFunc
175
176
You can’t perform that action at this time.
0 commit comments