Documentation ¶
Index ¶
- type Program
- func (prog *Program) Attach(shaders ...*Shader)
- func (prog *Program) BindFragDataLocation(n uint32, name string)
- func (prog *Program) Delete()
- func (prog *Program) GetAttribLocation(name string) int32
- func (prog *Program) GetUniformLocation(name string) int32
- func (prog *Program) Link() error
- func (prog *Program) Use()
- type Shader
- type Texture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program is a structure of a program
func NewProgram ¶
NewProgram create a new program
func (*Program) BindFragDataLocation ¶
BindFragDataLocation binds
func (*Program) GetAttribLocation ¶
GetAttribLocation get location of a program
func (*Program) GetUniformLocation ¶
GetUniformLocation get location of a program
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
Shader is a shader struct
func NewShaderFromFile ¶
NewShaderFromFile create a shader from a file
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
Texture contains all elements for an OpenGL texture
func NewTexture ¶
NewTexture creates a new texture
func (*Texture) SetUniform ¶
SetUniform set a uniform texture
Click to show internal directories.
Click to hide internal directories.