shaders

package module
v0.0.0-...-c7fb8ee Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2014 License: MIT Imports: 2 Imported by: 7

README

Shaders

shaders is a Go package for handling OpenGL shader resources.

Installation

go install github.com/remogatto/shaders

LICENSE

See LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FragmentShader

type FragmentShader string

func (FragmentShader) Compile

func (s FragmentShader) Compile() uint32

type Program

type Program uint32

func NewProgram

func NewProgram(fsh FragmentShader, vsh VertexShader) Program

func (Program) GetAttribute

func (p Program) GetAttribute(name string) uint32

func (Program) GetUniform

func (p Program) GetUniform(name string) uint32

func (Program) Use

func (p Program) Use()

type VertexShader

type VertexShader string

func (VertexShader) Compile

func (s VertexShader) Compile() uint32

Jump to

Keyboard shortcuts

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