shaders

package
v0.0.0-...-48f6ed3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShaderVariableHandler

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

ShaderVariableHandler keeps track of uniform locations

func NewShaderVariableHandler

func NewShaderVariableHandler() *ShaderVariableHandler

NewShaderVariableHandler inits and returns

func (*ShaderVariableHandler) GetAttribute

func (h *ShaderVariableHandler) GetAttribute(id string) int32

GetAttribute returns the location of a shader variable

func (*ShaderVariableHandler) GetUniform

func (h *ShaderVariableHandler) GetUniform(id string) int32

GetUniform returns the location of a shader variable

func (*ShaderVariableHandler) ReadAttributeLocations

func (h *ShaderVariableHandler) ReadAttributeLocations(shaderPgm uint32, attributes []string)

ReadAttributeLocations fetches the uniform locations from opengl

func (*ShaderVariableHandler) ReadUniformLocations

func (h *ShaderVariableHandler) ReadUniformLocations(shaderPgm uint32, uniforms []string)

ReadUniformLocations fetches the uniform locations from opengl

func (*ShaderVariableHandler) RefreshLocations

func (h *ShaderVariableHandler) RefreshLocations(shaderPgm uint32)

RefreshLocations refetches the locations

Jump to

Keyboard shortcuts

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