Add source files, commit before reverting pictures to lists

This commit is contained in:
jgk
2021-02-15 00:07:55 +01:00
parent c6bcfacc7a
commit 8447844bcd
41 changed files with 13677 additions and 35 deletions
+13 -35
View File
@@ -6,9 +6,6 @@ import Shaders
import Render
import Shapes
import Dodge.Rendering
import Dodge.RenderPicture
import Dodge.Picture
import Dodge.Prototypes
import Dodge.Data
import Dodge.Initialisation
@@ -17,7 +14,11 @@ import Dodge.Layout
import Dodge.LoadSound
import Dodge.Update
import Dodge.KeyEvents
import Dodge.Preload
import Dodge.Rendering
import Picture
import Picture.Render
import Picture.Preload
import Control.Concurrent
import Control.Lens
@@ -38,31 +39,6 @@ initWorld = initialWorld
pps = [(0,0),(50,0),(0,25)]
ppt = [(0,0),(-50,0),(20,25)]
tSh = TextShape
[((0.0,0.0,0),(1,0,1,1),(s,1))
,((0.5,0.0,0),(1,1,1,1),(e,1))
,((0.5,1.0,0),(1,1,1,1),(e,0))
,((0.0,1.0,0),(1,1,1,1),(s,0))
]
where x = 1/128
s = 20 * x
e = s + x
tSh' = TShape'
[0.0,0.0,0,1,0,1,1,s,1
,0.5,0.0,0,1,1,1,1,e,1
,0.5,1.0,0,1,1,1,1,e,0
,0.0,1.0,0,1,1,1,1,s,0
] TriangleFan
where x = 1/128
s = 20 * x
e = s + x
tSha = TShape'
[0.0,0.0,0,1,1,1,1
,50 ,0.0,0,1,1,1,1
,50 ,50 ,0,1,1,1,1
,0.0,1.0,0,1,1,1,1
] TriangleFan
main :: IO ()
main = do
-- loadedSounds <- loadSounds
@@ -70,15 +46,17 @@ main = do
"windowName"
800 600
doPreload'
cleanUpPreload
(initializeWorld $ generateFromTree lev1 $ initWorld)
(-- \((bs:fs:ts:_),tes) w -> --do render setparams w egFade
\preData w -> --do render setparams w egFade
--renderPicture preData (draw blank w)
renderPicture' preData (pictures' [--scale' 0.5 0.9 $ polygon' [(0,0),(0,0.5),(0.5,0.5),(0.5,0.0)]
scale' 0.0005 0.0005 $ text' "asdf"
]
)
-- renderTex'' preData tSh
renderPicture' preData (draw blank w)
-- renderPicture' preData
-- (pictures [scale 0.5 0.9 $ polygon [(0,0),(0,-0.5),(-0.5,-0.5),(-0.5,0.0)]
-- ,scale 0.5 0.9 $ polygon [(0,0),(0,-0.5),(-0.5,-0.5),(-0.5,0.0)]
-- ,color red $ scale 0.0005 0.0005 $ text "asdf"
-- ]
-- )
)
handleEvent
(\w -> Just $ update w)