headless

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package headless contains a headless engine backend. Enabled with the `headless` build tag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sound

type Sound struct{}

Sound is a headless implementation of engine.Sound.

func (Sound) Close

func (s Sound) Close()

Close implements the Close method of engine.Sound.

func (Sound) Loop

func (s Sound) Loop() error

Loop implements the Loop method of engine.Sound.

func (Sound) Pause

func (s Sound) Pause()

Pause implements the Pause method of engine.Sound.

func (Sound) Play

func (s Sound) Play() error

Play implements the Play method of engine.Sound.

func (Sound) Reset

func (s Sound) Reset()

Reset implements the Reset method of engine.Sound.

type SoundControl

type SoundControl struct{}

SoundControl is a headless implementation of engine.SoundControl.

func (SoundControl) SetVolume

func (sc SoundControl) SetVolume(group string, v float64)

SetVolume implements the SetVolume method of engine.SoundControl.

func (SoundControl) Volume

func (sc SoundControl) Volume(group string) float64

Volume implements the Volume method of engine.SoundControl.

Jump to

Keyboard shortcuts

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