diff options
Diffstat (limited to 'Demos/Pong/Main.hs')
-rw-r--r-- | Demos/Pong/Main.hs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Demos/Pong/Main.hs b/Demos/Pong/Main.hs index c82b67e..0237a26 100644 --- a/Demos/Pong/Main.hs +++ b/Demos/Pong/Main.hs | |||
@@ -5,8 +5,7 @@ import Pong | |||
5 | import Spear.App | 5 | import Spear.App |
6 | import Spear.Game | 6 | import Spear.Game |
7 | import Spear.Math.AABB | 7 | import Spear.Math.AABB |
8 | import Spear.Math.Matrix4 as Matrix4 hiding | 8 | import Spear.Math.Matrix4 as Matrix4 hiding (position) |
9 | (position) | ||
10 | import Spear.Math.Spatial | 9 | import Spear.Math.Spatial |
11 | import Spear.Math.Spatial2 | 10 | import Spear.Math.Spatial2 |
12 | import Spear.Math.Vector | 11 | import Spear.Math.Vector |
@@ -15,10 +14,7 @@ import Spear.Render.Core.State | |||
15 | import Spear.Render.Immediate | 14 | import Spear.Render.Immediate |
16 | import Spear.Window | 15 | import Spear.Window |
17 | 16 | ||
18 | import Data.Maybe (mapMaybe) | 17 | import Data.Maybe (mapMaybe) |
19 | import Graphics.Rendering.OpenGL.GL (($=)) | ||
20 | import qualified Graphics.Rendering.OpenGL.GL as GL | ||
21 | import Graphics.Rendering.OpenGL.GL.VertexSpec (currentColor) | ||
22 | 18 | ||
23 | 19 | ||
24 | data GameState = GameState | 20 | data GameState = GameState |
@@ -125,6 +121,3 @@ translateEvents = mapMaybe translateEvents' | |||
125 | translateEvents' _ = Nothing | 121 | translateEvents' _ = Nothing |
126 | 122 | ||
127 | exitRequested = elem (KeyDown KEY_ESC) | 123 | exitRequested = elem (KeyDown KEY_ESC) |
128 | |||
129 | f2d :: Float -> GL.GLdouble | ||
130 | f2d = realToFrac | ||