Commit graph

10 commits

Author SHA1 Message Date
68ff0cb4b1
Get rid of MapView and MapState 2018-10-31 15:10:40 +01:00
da3e93a942
view: more refactoring 2018-10-31 14:40:20 +01:00
af04cbe359
view: refactor generic parts of MapView into a TileView 2018-10-31 14:24:38 +01:00
272e37a408
view: move tile size definition to MapLoader
We also remove the unneeded redrawPending flag.
2018-10-31 12:54:49 +01:00
4b680776a3
MapLoader: use square tile texture rather than long Nx1 rectangle
By placing the tiles in a square texture, the dimensions are bounded by the
square root of the dimension in the old solution. This way we can fit a
significantly higher number of tiles into it without using up all the
accuracy of the coordinates.
2018-10-26 23:11:14 +02:00
bc6d79b088
model: add mutable MapState (empty for now) 2018-10-26 21:59:46 +02:00
ebc56db63c
Move shader initialization out of renderer
Avoid public fields and ! overrides, make almost all fields readonly.
2018-10-24 23:05:13 +02:00
9770eaf432
Throw in tslint and fix style 2018-10-24 22:28:27 +02:00
ad0f256724
view/MapLoader: refactor texture creation into a method 2018-10-24 00:26:47 +02:00
02758a69ac
Implement simple map renderer 2017-09-12 09:20:19 +02:00