sdlex

package
v0.0.0-...-2482a4e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUTTON_PRESSED, BUTTON_RELEASED = 1, 0
)

Variables

This section is empty.

Functions

func IsMouseMotionState

func IsMouseMotionState(stateBitMask, state uint32) bool

func IsRepeatButtonPress

func IsRepeatButtonPress(event *sdl.KeyboardEvent) bool

func PrintRendererInfos

func PrintRendererInfos() error

Types

type SdlWrap

type SdlWrap struct {
	// contains filtered or unexported fields
}

func MakeSdlWrap

func MakeSdlWrap(backendHandle *backend.Handle) (*SdlWrap, error)

func (SdlWrap) Handle

func (sdlWrap SdlWrap) Handle() *backend.Handle

func (SdlWrap) IsRunning

func (sdlWrap SdlWrap) IsRunning() bool

func (SdlWrap) PrepareFrame

func (sdlWrap SdlWrap) PrepareFrame()

func (SdlWrap) Quit

func (sdlWrap SdlWrap) Quit()

func (SdlWrap) RenderFramerate

func (sdlWrap SdlWrap) RenderFramerate(x, y int32) error

func (*SdlWrap) RenderGenerics

func (sdlWrap *SdlWrap) RenderGenerics()

func (*SdlWrap) RenderWrap

func (sdlWrap *SdlWrap) RenderWrap(wrap Wrap)

func (SdlWrap) Renderer

func (sdlWrap SdlWrap) Renderer() *sdl.Renderer

func (SdlWrap) ShowFrame

func (sdlWrap SdlWrap) ShowFrame()

func (*SdlWrap) StopRunning

func (sdlWrap *SdlWrap) StopRunning()

type Wrap

type Wrap interface {
	Destroy()
	Initialize(sdlWrap *SdlWrap, handle *backend.Handle) error
	IsReady() bool
	Render(sdlWrap *SdlWrap, handle *backend.Handle) error
}

Jump to

Keyboard shortcuts

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