Documentation ¶
Index ¶
- Constants
- type Program
- func (m *Program) AddShader(sh *Shader) error
- func (m *Program) AddUniform(name string)
- func (m *Program) Address(name string) *uint32
- func (m *Program) BindShaderStorage(name string, layout uint32, length int, data unsafe.Pointer)
- func (m *Program) DeleteShader(name string)
- func (m *Program) DispatchCompute(x int32, y int32, z int32)
- func (m *Program) GetMaxWorkGroup() [3]int32
- func (m *Program) GetUniformLocation(name string) (uint32, error)
- func (m *Program) Halt()
- func (m *Program) IsLinked() bool
- func (m *Program) Link() error
- func (m *Program) Location(name string) uint32
- func (m *Program) ShaderLog()
- func (m *Program) Use()
- type Shader
Constants ¶
View Source
const ( FRAG_SHADER = gl.FRAGMENT_SHADER VERT_SHADER = gl.VERTEX_SHADER GEOM_SHADER = gl.GEOMETRY_SHADER COMPUTE_SHADER = gl.COMPUTE_SHADER )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶
func (*Program) BindShaderStorage ¶
func (*Program) GetMaxWorkGroup ¶
func (*Program) GetUniformLocation ¶
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
func NewShader ¶
-----------------------------------
Shader
----------------------------------- New shader attempts to create and compile a new shader when instantiated
func NewShaderFromSource ¶
func (*Shader) GetMessage ¶
func (*Shader) IsCompiled ¶
func (*Shader) PrintMessage ¶
func (m *Shader) PrintMessage()
Click to show internal directories.
Click to hide internal directories.