1
0
forked from MTSR/mapserver

render skeleton

This commit is contained in:
Thomas Rudin 2019-01-10 15:21:34 +01:00
parent 0223db6587
commit 8c90b27d45
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package colormapping
type ColorMapping struct {
}

View File

@ -8,6 +8,10 @@ func NewMapBlockCoords(x,y,z int) MapBlockCoords {
return MapBlockCoords{X:x, Y:y, Z:z}
}
type MapBlockRange struct {
pos1, pos2 MapBlockCoords
}
const (
MaxCoord = 2047
MinCoord = -2047

View File

View File

@ -0,0 +1,20 @@
package mapblockrenderer
import (
"mapserver/coords"
"mapserver/db"
"mapserver/colormapping"
)
type MapBlockRenderer struct {
accessor *coords.DBAccessor
colors *colormapping.ColorMapping
}
func NewMapBlockRenderer(accessor *coords.DBAccessor, colors *colormapping.ColorMapping){
//TODO
}
func (r *MapBlockRenderer) Render(range coords.MapBlockRange){
//TODO
}