shader

package
v0.0.0-...-1050381 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Parallax *parallax
	Model    *model
)

Functions

func Initialize

func Initialize() error

func UseProgram

func UseProgram(p gl.Program)

UseProgram sets the provided shader program as being active - meaning it will be used in rendering calls.

Note that the gl program can be set directly by calling gl.UseProgram, rather than this method. Generally a UseProgram call is expensive, but by wrapping it in this method we can keep track of the currently active program so the GPU doesn't need to be interacted with if there's no change. Given this, it's recommended not to use gl.UseProgram and to use this method instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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