render

package
v0.0.0-...-abed7bd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableShader

func EnableShader(name string) error

func GetAttribLocation

func GetAttribLocation(shaderName, attribName string) (int32, error)

func GetUniformLocation

func GetUniformLocation(shaderName, uniformName string) (int32, error)

func Init

func Init()

func Purge

func Purge()

Waits until all render thread functions have been run

func Queue

func Queue(f func())

Queues a function to run on the render thread

func RegisterShader

func RegisterShader(name string, vertex, fragment []byte) error

func SetUniform4F

func SetUniform4F(shader, variable string, vs []float32) error

func SetUniformF

func SetUniformF(shader, variable string, f float32) error

func SetUniformI

func SetUniformI(shader, variable string, n int32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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