sdl2

package
v0.0.0-...-a690e8b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Texture

type Texture struct {
	Win  *Window
	Tex  *sdl.Texture
	Subs []*sdl.Texture
	Src  *image.RGBA
}

func (*Texture) Expire

func (t *Texture) Expire()

func (*Texture) MarkSubTexture

func (t *Texture) MarkSubTexture(r splish.Rectangle) interface{}

type Window

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

func NewWindow

func NewWindow(bounds splish.Rectangle, fullscreen bool) (*Window, error)

func (*Window) Draw

func (w *Window) Draw(ss []*splish.SubScene, r splish.Rectangle)

func (*Window) NewTexture

func (w *Window) NewTexture(img *image.RGBA) (*Texture, error)

func (*Window) UploadTexture

func (w *Window) UploadTexture(img *image.RGBA) splish.Texture

Jump to

Keyboard shortcuts

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