Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadBasicShaders ¶
func LoadBasicShaders()
Types ¶
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
Shader is a struct for render programs
func GetShaderByName ¶
GetShaderByName retrieves a loaded shader by its name
func (*Shader) Activate ¶
func (shader *Shader) Activate()
Activate will draw everything with this program and load it if it isnt loaded.
func (*Shader) GetUniform ¶
GetUniform will return the ID for a GLSL uniform
func (*Shader) SetUniform ¶
SetUniform will set a uniform with provided data
Click to show internal directories.
Click to hide internal directories.