Documentation ¶
Index ¶
- type SDL2GraphicsBackend
- func (r *SDL2GraphicsBackend) CurrentFPS() float64
- func (r *SDL2GraphicsBackend) GetCursorPos() (int, int)
- func (r *SDL2GraphicsBackend) GetRendererName() string
- func (r *SDL2GraphicsBackend) GetVSyncEnabled() bool
- func (r *SDL2GraphicsBackend) IsFullScreen() bool
- func (r *SDL2GraphicsBackend) NewSurface(width, height int, pixelData *[]byte) (graphicsbackend.Surface, error)
- func (r *SDL2GraphicsBackend) Render() error
- func (r *SDL2GraphicsBackend) RenderTo(graphicsbackend.Surface) error
- func (r *SDL2GraphicsBackend) SetFullScreen(fullScreen bool)
- func (r *SDL2GraphicsBackend) SetVSyncEnabled(vsync bool)
- func (r *SDL2GraphicsBackend) SetWindowIcon(fileName string)
- type SDL2Surface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SDL2GraphicsBackend ¶
type SDL2GraphicsBackend struct {
// contains filtered or unexported fields
}
func Create ¶
func Create() (*SDL2GraphicsBackend, error)
func (*SDL2GraphicsBackend) CurrentFPS ¶
func (r *SDL2GraphicsBackend) CurrentFPS() float64
func (*SDL2GraphicsBackend) GetCursorPos ¶
func (r *SDL2GraphicsBackend) GetCursorPos() (int, int)
func (*SDL2GraphicsBackend) GetRendererName ¶
func (r *SDL2GraphicsBackend) GetRendererName() string
func (*SDL2GraphicsBackend) GetVSyncEnabled ¶
func (r *SDL2GraphicsBackend) GetVSyncEnabled() bool
func (*SDL2GraphicsBackend) IsFullScreen ¶
func (r *SDL2GraphicsBackend) IsFullScreen() bool
func (*SDL2GraphicsBackend) NewSurface ¶
func (r *SDL2GraphicsBackend) NewSurface(width, height int, pixelData *[]byte) (graphicsbackend.Surface, error)
func (*SDL2GraphicsBackend) Render ¶
func (r *SDL2GraphicsBackend) Render() error
func (*SDL2GraphicsBackend) RenderTo ¶
func (r *SDL2GraphicsBackend) RenderTo(graphicsbackend.Surface) error
func (*SDL2GraphicsBackend) SetFullScreen ¶
func (r *SDL2GraphicsBackend) SetFullScreen(fullScreen bool)
func (*SDL2GraphicsBackend) SetVSyncEnabled ¶
func (r *SDL2GraphicsBackend) SetVSyncEnabled(vsync bool)
func (*SDL2GraphicsBackend) SetWindowIcon ¶
func (r *SDL2GraphicsBackend) SetWindowIcon(fileName string)
type SDL2Surface ¶
type SDL2Surface struct {
// contains filtered or unexported fields
}
func CreateSDL2Surface ¶
func (SDL2Surface) RenderTo ¶
func (s SDL2Surface) RenderTo(targetSurface graphicsbackend.Surface) error
Click to show internal directories.
Click to hide internal directories.