forked from MTSR/mapserver
render skeleton
This commit is contained in:
parent
0223db6587
commit
8c90b27d45
5
colormapping/colormapping.go
Normal file
5
colormapping/colormapping.go
Normal file
@ -0,0 +1,5 @@
|
||||
package colormapping
|
||||
|
||||
type ColorMapping struct {
|
||||
|
||||
}
|
@ -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
|
||||
|
0
mapblockaccessor/mapblockaccessor.go
Normal file
0
mapblockaccessor/mapblockaccessor.go
Normal file
20
mapblockrenderer/renderer.go
Normal file
20
mapblockrenderer/renderer.go
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user