mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-10 14:26:15 -05:00
2461142fbd
* Minor changes to reduce interdependencies on modules.
21 lines
607 B
Go
21 lines
607 B
Go
package d2interface
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common"
|
|
)
|
|
|
|
type Renderer interface {
|
|
GetRendererName() string
|
|
SetWindowIcon(fileName string)
|
|
Run(f func(d2common.Surface) error, width, height int, title string) error
|
|
IsDrawingSkipped() bool
|
|
CreateSurface(surface d2common.Surface) (error, d2common.Surface)
|
|
NewSurface(width, height int, filter d2common.Filter) (error, d2common.Surface)
|
|
IsFullScreen() (bool, error)
|
|
SetFullScreen(fullScreen bool) error
|
|
SetVSyncEnabled(vsync bool) error
|
|
GetVSyncEnabled() (bool, error)
|
|
GetCursorPos() (int, int, error)
|
|
CurrentFPS() float64
|
|
}
|