Documentation ¶
Index ¶
- func Compile(source string, shaderType uint32) (uint32, error)
- type Program
- func (p *Program) BindFragment(name string)
- func (p Program) CreateProgram(vertexShaderSource, fragmentShaderSource string) (Program, error)
- func (p *Program) SetCamera(camera mgl32.Mat4)
- func (p *Program) SetFloat32(name string, value float32)
- func (p *Program) SetModel(model mgl32.Mat4)
- func (p *Program) SetProjectionMatrix(projection mgl32.Mat4)
- func (p *Program) SetUniform1i(name string, value int32)
- func (p *Program) SetUniformMat4fv(name string, uniformMat mgl32.Mat4, uIndex uint8, transpose bool)
- func (p *Program) SetVec2dF32(name string, value mgl32.Vec2)
- func (p *Program) SetupVertexAttributeArrayAndPointer(name string, size, stride int32, pointerOffset int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Program ¶
type Program struct {
Data uint32
}
Program data holder
func (Program) CreateProgram ¶
CreateProgram compiles shader and links
func (*Program) SetProjectionMatrix ¶
SetProjectionMatrix .
func (*Program) SetUniform1i ¶
SetUniform1i .
func (*Program) SetUniformMat4fv ¶
func (p *Program) SetUniformMat4fv(name string, uniformMat mgl32.Mat4, uIndex uint8, transpose bool)
SetUniformMat4fv .
func (*Program) SetVec2dF32 ¶
SetVec2dF32 .
Click to show internal directories.
Click to hide internal directories.