mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-19 10:56:07 -05:00
17 lines
463 B
Go
17 lines
463 B
Go
package d2render
|
|
|
|
type Renderer interface {
|
|
GetRendererName() string
|
|
SetWindowIcon(fileName string)
|
|
Run(f func(Surface) error, width, height int, title string) error
|
|
IsDrawingSkipped() bool
|
|
CreateSurface(surface Surface) (Surface, error)
|
|
NewSurface(width, height int, filter Filter) (Surface, error)
|
|
IsFullScreen() bool
|
|
SetFullScreen(fullScreen bool)
|
|
SetVSyncEnabled(vsync bool)
|
|
GetVSyncEnabled() bool
|
|
GetCursorPos() (int, int)
|
|
CurrentFPS() float64
|
|
}
|