aboutsummaryrefslogtreecommitdiff
path: root/Demos/Pong
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Pong')
-rw-r--r--Demos/Pong/Main.hs11
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
5import Spear.App 5import Spear.App
6import Spear.Game 6import Spear.Game
7import Spear.Math.AABB 7import Spear.Math.AABB
8import Spear.Math.Matrix4 as Matrix4 hiding 8import Spear.Math.Matrix4 as Matrix4 hiding (position)
9 (position)
10import Spear.Math.Spatial 9import Spear.Math.Spatial
11import Spear.Math.Spatial2 10import Spear.Math.Spatial2
12import Spear.Math.Vector 11import Spear.Math.Vector
@@ -15,10 +14,7 @@ import Spear.Render.Core.State
15import Spear.Render.Immediate 14import Spear.Render.Immediate
16import Spear.Window 15import Spear.Window
17 16
18import Data.Maybe (mapMaybe) 17import Data.Maybe (mapMaybe)
19import Graphics.Rendering.OpenGL.GL (($=))
20import qualified Graphics.Rendering.OpenGL.GL as GL
21import Graphics.Rendering.OpenGL.GL.VertexSpec (currentColor)
22 18
23 19
24data GameState = GameState 20data GameState = GameState
@@ -125,6 +121,3 @@ translateEvents = mapMaybe translateEvents'
125 translateEvents' _ = Nothing 121 translateEvents' _ = Nothing
126 122
127exitRequested = elem (KeyDown KEY_ESC) 123exitRequested = elem (KeyDown KEY_ESC)
128
129f2d :: Float -> GL.GLdouble
130f2d = realToFrac