Skip to content

Commit

Permalink
Primitives for renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Dec 21, 2023
1 parent 0056f6e commit 9dcf82d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions render/chunkRenderer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package render

import (
"image"

"github.com/maxsupermanhd/go-vmc/v764/save"
)

type ChunkData interface {
GetDimensionName() string
GetDimension() *save.DimensionType
Get() *save.Chunk
GetNorth() *save.Chunk
GetNorthEast() *save.Chunk
GetEast() *save.Chunk
GetEastSouth() *save.Chunk
GetSouth() *save.Chunk
GetSouthWest() *save.Chunk
GetWest() *save.Chunk
GetWestNorth() *save.Chunk
}

type DataNeeds struct {
Dimension bool
NeighborsBordering bool
NeighborsCorners bool
}

type ChunkRenderer struct {
Name string
Render func(ChunkData) *image.RGBA
DataNeeds
}

0 comments on commit 9dcf82d

Please sign in to comment.