aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Sunet <jeannekamikaze@gmail.com>2012-08-30 19:23:18 +0200
committerMarc Sunet <jeannekamikaze@gmail.com>2012-08-30 19:23:18 +0200
commit83876d723d598111741c83e570db74139cc0d22d (patch)
tree509250da5100b5738daaf7c63c8029dde584f7dc
parent21cf357ac1f8d0bef6ed7d53d7f1b05b73484b8d (diff)
Removed Updatable and Renderable
-rw-r--r--Spear.cabal20
-rw-r--r--Spear.lkshs12
-rw-r--r--Spear/Render/Renderable.hs8
-rw-r--r--Spear/Updatable.hs9
4 files changed, 15 insertions, 34 deletions
diff --git a/Spear.cabal b/Spear.cabal
index 1f32616..bc9f429 100644
--- a/Spear.cabal
+++ b/Spear.cabal
@@ -22,19 +22,17 @@ library
22 Spear.Math.AABB Spear.Collision.Collision 22 Spear.Math.AABB Spear.Collision.Collision
23 Spear.Collision.Collisioner Spear.Math.Circle Spear.Math.Triangle 23 Spear.Collision.Collisioner Spear.Math.Circle Spear.Math.Triangle
24 Spear.Collision.Types Spear.Game Spear.GLSL Spear.Math.Camera 24 Spear.Collision.Types Spear.Game Spear.GLSL Spear.Math.Camera
25 Spear.Math.Entity 25 Spear.Math.Entity Spear.Math.Matrix3 Spear.Math.Matrix4
26 Spear.Math.Matrix3 Spear.Math.Matrix4 Spear.Math.MatrixUtils 26 Spear.Math.MatrixUtils Spear.Math.Plane Spear.Math.Quaternion
27 Spear.Math.Plane Spear.Math.Quaternion Spear.Math.Vector3 27 Spear.Math.Vector3 Spear.Math.Vector4 Spear.Physics
28 Spear.Math.Vector4 Spear.Physics Spear.Physics.Rigid 28 Spear.Physics.Rigid Spear.Render.AnimatedModel
29 Spear.Render.AnimatedModel Spear.Render.Material Spear.Render.Model 29 Spear.Render.Material Spear.Render.Model Spear.Render.Program
30 Spear.Render.Program Spear.Render.Renderable
31 Spear.Render.StaticModel Spear.Render.Texture Spear.Scene.Graph 30 Spear.Render.StaticModel Spear.Render.Texture Spear.Scene.Graph
32 Spear.Scene.Light Spear.Scene.Loader Spear.Scene.Scene 31 Spear.Scene.Light Spear.Scene.Loader Spear.Scene.Scene
33 Spear.Scene.SceneResources Spear.Setup Spear.Sys.Timer 32 Spear.Scene.SceneResources Spear.Setup Spear.Sys.Timer
34 Spear.Sys.Store Spear.Sys.Store.ID Spear.Updatable 33 Spear.Sys.Store Spear.Sys.Store.ID Spear.Math.Vector2
35 Spear.Math.Vector2 Spear.Math.Quad Spear.Math.Ray 34 Spear.Math.Quad Spear.Math.Ray Spear.Math.Segment Spear.Math.Utils
36 Spear.Math.Segment Spear.Math.Utils Spear.Math.Spatial2 35 Spear.Math.Spatial2 Spear.Math.Spatial3
37 Spear.Math.Spatial3
38 exposed: True 36 exposed: True
39 buildable: True 37 buildable: True
40 build-tools: hsc2hs -any 38 build-tools: hsc2hs -any
@@ -57,4 +55,4 @@ library
57 Spear/Sys 55 Spear/Sys
58 hs-source-dirs: . 56 hs-source-dirs: .
59 ghc-options: -O2 -rtsopts 57 ghc-options: -O2 -rtsopts
60 58 \ No newline at end of file
diff --git a/Spear.lkshs b/Spear.lkshs
index bc27e60..38c6f2c 100644
--- a/Spear.lkshs
+++ b/Spear.lkshs
@@ -1,18 +1,18 @@
1Version of session file format: 1Version of session file format:
2 1 2 1
3Time of storage: 3Time of storage:
4 "Thu Aug 30 18:49:02 CEST 2012" 4 "Thu Aug 30 19:22:08 CEST 2012"
5Layout: VerticalP (TerminalP {paneGroups = fromList [], paneTabs = Just TopP, currentPage = 6, detachedId = Nothing, detachedSize = Nothing}) (HorizontalP (TerminalP {paneGroups = fromList [("Browser",HorizontalP (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (HorizontalP (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) 338) 215)], paneTabs = Just BottomP, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) 760) 954 5Layout: VerticalP (TerminalP {paneGroups = fromList [], paneTabs = Just TopP, currentPage = 2, detachedId = Nothing, detachedSize = Nothing}) (HorizontalP (TerminalP {paneGroups = fromList [("Browser",HorizontalP (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (HorizontalP (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) 357) 139)], paneTabs = Just BottomP, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) (TerminalP {paneGroups = fromList [], paneTabs = Nothing, currentPage = 0, detachedId = Nothing, detachedSize = Nothing}) 653) 954
6Population: [(Just (ErrorsSt ErrorsState),[SplitP RightP,SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Factory.hs" 1268)),[SplitP LeftP]),(Just (FilesSt FilesState),[SplitP RightP,SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/GLSL.hs" 18361)),[SplitP LeftP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/Scene/GameObject.hs" 137)),[SplitP LeftP]),(Just (InfoSt (InfoState Nothing)),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP BottomP,SplitP BottomP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/Scene/Loader.hs" 0)),[SplitP LeftP]),(Just (LogSt LogState),[SplitP RightP,SplitP BottomP]),(Just (ModulesSt (ModulesState 328 (PackageScope False,False) (Just (ModuleName ["Spear","GLSL","VAO"]),Nothing) (ExpanderState {packageExp = ([],[]), packageExpNoBlack = ([[0,2],[0]],[]), packageDExp = ([],[]), packageDExpNoBlack = ([],[]), workspaceExp = ([],[]), workspaceExpNoBlack = ([],[]), workspaceDExp = ([],[]), workspaceDExpNoBlack = ([],[]), systemExp = ([],[]), systemExpNoBlack = ([],[])}))),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP BottomP,SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Player.hs" 765)),[SplitP LeftP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Utils.hs" 835)),[SplitP LeftP]),(Just (WorkspaceSt WorkspaceState),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/demos/simple-scene/main.hs" 5372)),[SplitP LeftP])] 6Population: [(Just (ErrorsSt ErrorsState),[SplitP RightP,SplitP TopP]),(Just (FilesSt FilesState),[SplitP RightP,SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/Scene/GameObject.hs" 447)),[SplitP LeftP]),(Just (InfoSt (InfoState Nothing)),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP BottomP,SplitP BottomP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/Scene/Loader.hs" 0)),[SplitP LeftP]),(Just (LogSt LogState),[SplitP RightP,SplitP BottomP]),(Just (ModulesSt (ModulesState 328 (PackageScope False,False) (Just (ModuleName ["Spear","Render","Renderable"]),Nothing) (ExpanderState {packageExp = ([],[]), packageExpNoBlack = ([[0,6],[0]],[]), packageDExp = ([],[]), packageDExpNoBlack = ([],[]), workspaceExp = ([],[]), workspaceExpNoBlack = ([],[]), workspaceDExp = ([],[]), workspaceDExpNoBlack = ([],[]), systemExp = ([],[]), systemExpNoBlack = ([],[])}))),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP BottomP,SplitP TopP]),(Just (BufferSt (BufferState "/home/jeanne/programming/haskell/Spear/Spear/Render/Program.hs" 248)),[SplitP LeftP]),(Just (WorkspaceSt WorkspaceState),[SplitP RightP,SplitP TopP,GroupP "Browser",SplitP TopP])]
7Window size: (1820,939) 7Window size: (1820,939)
8Completion size: 8Completion size:
9 (750,399) 9 (750,399)
10Workspace: Just "/home/jeanne/programming/haskell/Spear/Spear.lkshw" 10Workspace: Just "/home/jeanne/programming/haskell/Spear/Spear.lkshw"
11Active pane: Just "main.hs" 11Active pane: Just "Modules"
12Toolbar visible: 12Toolbar visible:
13 True 13 True
14FindbarState: (False,FindState {entryStr = "\170", entryHist = ["\170","\\","^","scale","Vector4.","asdad","translv","Vector3.","Vector.","copy_tr","asad","Octree"], replaceStr = "V3.", replaceHist = [], caseSensitive = True, entireWord = False, wrapAround = False, regex = False, lineNr = 1}) 14FindbarState: (False,FindState {entryStr = "", entryHist = ["VAO","'VAO'","\170","\\","^","scale","Vector4.","asdad","translv","Vector3.","Vector.","copy_tr"], replaceStr = "V3.", replaceHist = [], caseSensitive = True, entireWord = False, wrapAround = False, regex = False, lineNr = 1})
15Recently opened files: 15Recently opened files:
16 ["/home/jeanne/programming/haskell/Spear/Spear/GLSL/VAO.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Uniform.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Texture.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Management.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Buffer.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Error.hs","/home/jeanne/programming/haskell/Spear/Spear/Render/AnimatedModel.hs","/home/jeanne/programming/haskell/Spear/Spear/Assets/Model/OBJ/OBJ_load.c","/home/jeanne/programming/haskell/Spear/Spear/Assets/Model/MD2/MD2_load.c","/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject.hs","/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Factory.hs","/home/jeanne/programming/haskell/Spear/Spear/App/Application.hs"] 16 ["/home/jeanne/programming/haskell/Spear/Spear/Updatable.hs","/home/jeanne/programming/haskell/Spear/demos/simple-scene/main.hs","/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Utils.hs","/home/jeanne/programming/haskell/Spear/Spear/Render/Texture.hs","/home/jeanne/programming/haskell/Spear/demos/simple-scene/Game/GameObject/Player.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/VAO.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Uniform.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Texture.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Management.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Buffer.hs","/home/jeanne/programming/haskell/Spear/Spear/GLSL/Error.hs"]
17Recently opened workspaces: 17Recently opened workspaces:
18 ["/home/jeanne/programming/haskell/hagen/hagen.lkshw","/home/jeanne/programming/haskell/foo/foo.lkshw","/home/jeanne/programming/haskell/Spear/Spear.lkshw","/home/jeanne/programming/haskell/nexus/nexus.lkshw","/home/jeanne/leksah.lkshw"] \ No newline at end of file 18 ["/home/jeanne/programming/haskell/hagen/hagen.lkshw","/home/jeanne/programming/haskell/foo/foo.lkshw","/home/jeanne/programming/haskell/Spear/Spear.lkshw","/home/jeanne/programming/haskell/nexus/nexus.lkshw","/home/jeanne/leksah.lkshw"] \ No newline at end of file
diff --git a/Spear/Render/Renderable.hs b/Spear/Render/Renderable.hs
deleted file mode 100644
index a3d08f9..0000000
--- a/Spear/Render/Renderable.hs
+++ /dev/null
@@ -1,8 +0,0 @@
1module Spear.Render.Renderable
2where
3
4
5class Renderable a where
6
7 -- | Renders the given 'Renderable'.
8 render :: a -> IO ()
diff --git a/Spear/Updatable.hs b/Spear/Updatable.hs
deleted file mode 100644
index 2c7a7e9..0000000
--- a/Spear/Updatable.hs
+++ /dev/null
@@ -1,9 +0,0 @@
1module Spear.Updatable
2where
3
4
5-- | A type class for types that can update themselves given a time delta.
6class Updatable a where
7
8 -- | Updates the given 'Updatable'.
9 update :: Float -> a -> a