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-01 20:39:28 -05:00
|
|
|
CreateSurface(surface Surface) (error, Surface)
|
|
|
|
NewSurface(width, height int, filter Filter) (error, Surface)
|
2020-01-31 23:18:11 -05:00
|
|
|
IsFullScreen() (bool, error)
|
|
|
|
SetFullScreen(fullScreen bool) error
|
|
|
|
SetVSyncEnabled(vsync bool) error
|
|
|
|
GetVSyncEnabled() (bool, error)
|
|
|
|
GetCursorPos() (int, int, error)
|
|
|
|
CurrentFPS() float64
|
|
|
|
}
|