gg/draw.go
2024-06-01 18:07:28 +05:00

15 lines
286 B
Go

package gg
type Drawing struct {
Vertices []Vertice
}
// The interface describes anything that can be
// drawn. It will be drew corresponding to
// the layers order so the layer must be returned.
type Drawer interface {
Draw(Context) *Drawing
GetLayer() Layer
IsVisible() bool
}