texture

package
v0.0.0-...-61d9b83 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: MIT Imports: 10 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 interface {
	SetParameter(uint32, interface{}) error
	Load(file string, flipH, flipV bool) (*image.RGBA, error)
	Use()
}

func NewTexture2D

func NewTexture2D() Texture

type Texture2D

type Texture2D struct {
	ID uint32
	// contains filtered or unexported fields
}

func (*Texture2D) Load

func (texture *Texture2D) Load(textureFile string, flipH, flipV bool) (*image.RGBA, error)

func (*Texture2D) SetParameter

func (texture *Texture2D) SetParameter(name uint32, param interface{}) error

func (*Texture2D) Use

func (texture *Texture2D) Use()

Jump to

Keyboard shortcuts

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