sdl2graphicsbackend

package
v0.0.0-...-c7db75a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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 (*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 CreateSDL2Surface(renderer *sdl.Renderer, texture *sdl.Texture, width, height int32) *SDL2Surface

func (SDL2Surface) RenderTo

func (s SDL2Surface) RenderTo(targetSurface graphicsbackend.Surface) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL