x11

package
v0.0.0-...-0637ba6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Abstraction layer from the windowing/rendering context.

Index

Constants

View Source
const (
	KeyUnknown = iota
	KeyLeft
	KeyRight
	KeyDown
	KeyUp
	KeyMax
)

Variables

This section is empty.

Functions

func Clear

func Clear(bg color.RGBA)

func KeyPressed

func KeyPressed() [KeyMax]bool

func Main

func Main(width, height int, mainLoop func())

Open a window with given size, and execute mainLoop. Never returns.

func Publish

func Publish()

Types

type Texture

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

func Upload

func Upload(img image.Image) Texture

func (*Texture) DrawAt

func (t *Texture) DrawAt(x, y int)

Jump to

Keyboard shortcuts

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