gg/draw.go

16 lines
286 B
Go
Raw Normal View History

2024-01-13 18:17:34 +03:00
package gg
2024-05-28 11:24:12 +03:00
type Drawing struct {
2024-06-01 16:07:28 +03:00
Vertices []Vertice
2024-05-28 11:24:12 +03:00
}
// 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 {
2024-06-01 16:07:28 +03:00
Draw(Context) *Drawing
2024-05-28 11:24:12 +03:00
GetLayer() Layer
IsVisible() bool
}