1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-12 02:30:43 +00:00
OpenDiablo2/d2corecommon/d2coreinterface/drawable.go
Alex Yatskov 49b9a190f2 Render to surface, not ebiten texture (#268)
* Render to surface, not ebiten texture

* Fix debug text
2019-12-28 16:46:08 -05:00

14 lines
330 B
Go

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