mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
ae6bfb839e
* fixed lint issues of the package d2core/d2inventory * fixed lint issues of the d2script package * fixed lint issues of the d2common/d2interface package * fixed lint issues of the d2common/d2resource package * fixed lint issues of the d2core/d2term package * fixed conflict errors
18 lines
528 B
Go
18 lines
528 B
Go
package d2interface
|
|
|
|
// Renderer interface defines the functionality of a renderer
|
|
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
|
|
}
|