2020-02-01 20:39:28 -05:00
|
|
|
package d2render
|
2020-01-31 23:18:11 -05:00
|
|
|
|
|
|
|
type Renderer interface {
|
|
|
|
GetRendererName() string
|
|
|
|
SetWindowIcon(fileName string)
|
2020-02-01 20:39:28 -05:00
|
|
|
Run(f func(Surface) error, width, height int, title string) error
|
2020-01-31 23:18:11 -05:00
|
|
|
IsDrawingSkipped() bool
|
2020-02-09 14:12:04 -05:00
|
|
|
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)
|
2020-01-31 23:18:11 -05:00
|
|
|
CurrentFPS() float64
|
|
|
|
}
|