diff options
author | 3gg <3gg@shellblade.net> | 2023-10-04 09:09:07 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-10-04 09:09:07 -0700 |
commit | a812e572bb8951bd5b9ebc575b2805925823c7ea (patch) | |
tree | 5075f0c31f88dfd3d858a8d3fd453d269a1f6db5 | |
parent | 4aa5d6340d651542db5f24c2ae6713d1a48bbf19 (diff) |
Clean up.
-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 | ||