sdl

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

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

func (*Audio) Close

func (a *Audio) Close() error

type Context

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

func New

func New(t Type) (*Context, error)

Create a new SDL object which can output audio and video

func (*Context) Close

func (s *Context) Close() error

func (*Context) NewAudio

func (s *Context) NewAudio(par *ffmpeg.Par) (*Audio, error)

func (*Context) NewVideo

func (s *Context) NewVideo(title string, par *ffmpeg.Par) (*Window, error)

func (*Context) Post

func (ctx *Context) Post(evt uint32, userInfo unsafe.Pointer)

func (*Context) Register

func (ctx *Context) Register(fn func(userInfo unsafe.Pointer)) uint32

func (*Context) Run

func (ctx *Context) Run(parent context.Context) error

type Window

type Window struct {
	*sdl.Window
	*sdl.Renderer
	*sdl.Texture
}

func (*Window) Close

func (w *Window) Close() error

func (*Window) Flush

func (w *Window) Flush() error

func (*Window) RenderFrame

func (w *Window) RenderFrame(frame *ffmpeg.Frame) error

Jump to

Keyboard shortcuts

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