platform

package
v0.0.0-...-dce6603 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWindowExists    = errors.New("only one window can exist at a time")
	ErrWindowNotExists = errors.New("no window has been created")
)
View Source
var (
	ErrPlatformNotInit = errors.New("platform is not initialized")
)

Functions

func Advance

func Advance() (bool, error)

func FileMountArchive

func FileMountArchive(mountPath, archivePath string) error

func FileUnmountAll

func FileUnmountAll() error

func FileUnmountArchive

func FileUnmountArchive(mountPath string) error

func Initialize

func Initialize() error

func NewTextureFromRgb

func NewTextureFromRgb(colors []math.Color3b, size math.Vec2i) (graphics.Texture, error)

func NewTextureFromRgba

func NewTextureFromRgba(colors []math.Color4b, size math.Vec2i) (graphics.Texture, error)

func Shutdown

func Shutdown() error

func WindowCreate

func WindowCreate(title string, size math.Vec2i, scene Scene) error

func WindowDestroy

func WindowDestroy() error

func WindowDisplaySize

func WindowDisplaySize() (math.Vec2i, error)

func WindowIsCreated

func WindowIsCreated() bool

func WindowRenderTexture

func WindowRenderTexture(texture graphics.Texture, position math.Vec2i) error

func WindowSetScene

func WindowSetScene(scene Scene) error

Types

type File

type File struct{}

func FileOpen

func FileOpen(path string) (*File, error)

type Scene

type Scene interface {
	Name() string
}

type SceneAdvancer

type SceneAdvancer interface {
	Advance() error
}

type SceneCreator

type SceneCreator interface {
	Create() error
}

type SceneDestroyer

type SceneDestroyer interface {
	Destroy() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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