view: render map entities
[d2df-maped.git] / src / maped.nim
bloba0f0aafbfce3646d05dd4c22f935d3ad39b2cfa8
1 import
2   std/streams, std/tables,
3   map, serialization, utils, gfx, gui, view, vfs
5 var fileLog = newFileLogger("maped.log")
6 var consoleLog = newConsoleLogger()
7 addHandler(fileLog)
8 addHandler(consoleLog)
10 vfs.init()
12 vfs.mount("data/editor.wad", false)
13 vfs.mount("data/game.wad", false)
15 gfx.init()
16 gui.init()
18 map.init()
19 map.create()
21 while gfx.beginFrame():
22   view.render(gui.selection)
23   if not gui.mainWindow():
24     break
25   gfx.endFrame()