textures

package
v0.0.0-...-6ed7bcd Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessUpdates

func ProcessUpdates()

You must call this function from the main thread which is running opengl.

Types

type Library

type Library map[string]*Texture

func MakeLibrary

func MakeLibrary() Library

type Texture

type Texture struct {
	Id       uint32
	Filename string
}

func Load

func Load(filename string, library Library) (*Texture, error)

func (*Texture) Bind

func (self *Texture) Bind(data []byte, size *image.Point)

func (*Texture) Watch

func (self *Texture) Watch() error

type TextureUpdate

type TextureUpdate struct {
	Data    []byte
	Size    *image.Point
	Texture *Texture
}

Jump to

Keyboard shortcuts

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