1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-19 10:56:07 -05:00
OpenDiablo2/d2core/d2ui/drawable.go
Alex Yatskov b5c1f5222d
Move rendering stuff out of d2common into d2render (#281)
* Move rendering stuff out of d2common into d2render

* Remove d2interface
2020-02-01 20:39:28 -05:00

15 lines
340 B
Go

package d2ui
import "github.com/OpenDiablo2/OpenDiablo2/d2core/d2render"
// Drawable represents an instance that can be drawn
type Drawable interface {
Render(target d2render.Surface)
Advance(elapsed float64)
GetSize() (width, height int)
SetPosition(x, y int)
GetPosition() (x, y int)
GetVisible() bool
SetVisible(visible bool)
}