Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeVertex = ShaderType(gl.VERTEX_SHADER) TypeFragment = ShaderType(gl.FRAGMENT_SHADER) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileErr ¶
func (CompileErr) Error ¶
func (cerr CompileErr) Error() string
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶
func (*Program) BindFor ¶
func (prog *Program) BindFor(context utils.BindingClosure)
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
func NewFragmentShader ¶
func NewShaderFromPath ¶
func NewShaderFromPath(modulePath string, shaderType ShaderType) (*Shader, error)
func NewVertexShader ¶
type ShaderType ¶
type ShaderType int
type UniformLinkError ¶
func (UniformLinkError) Error ¶
func (ulerr UniformLinkError) Error() string
Click to show internal directories.
Click to hide internal directories.