sdl

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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