aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2023-10-04 09:09:07 -0700
committer3gg <3gg@shellblade.net>2023-10-04 09:09:07 -0700
commita812e572bb8951bd5b9ebc575b2805925823c7ea (patch)
tree5075f0c31f88dfd3d858a8d3fd453d269a1f6db5
parent4aa5d6340d651542db5f24c2ae6713d1a48bbf19 (diff)
Clean up.
-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