gfx

package
v0.0.0-...-1ed56cc Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

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

func NewProgram

func NewProgram(shaders ...*Shader) (*Program, error)

func (*Program) Attach

func (prog *Program) Attach(shaders ...*Shader)

func (*Program) Delete

func (prog *Program) Delete()

func (*Program) GetUniformLocation

func (prog *Program) GetUniformLocation(name string) int32
func (prog *Program) Link() error

func (*Program) Use

func (prog *Program) Use()

type Shader

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

func NewShader

func NewShader(src string, sType uint32) (*Shader, error)

func NewShaderFromFile

func NewShaderFromFile(file string, sType uint32) (*Shader, error)

func (*Shader) Delete

func (shader *Shader) Delete()

type Texture

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

func NewTexture

func NewTexture(img image.Image, wrapR, wrapS int32) (*Texture, error)

func NewTextureFromFile

func NewTextureFromFile(file string, wrapR, wrapS int32) (*Texture, error)

func (*Texture) Bind

func (tex *Texture) Bind(texUnit uint32)

func (*Texture) SetUniform

func (tex *Texture) SetUniform(uniformLoc int32) error

func (*Texture) UnBind

func (tex *Texture) UnBind()

Jump to

Keyboard shortcuts

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