Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shader ¶
type Shader struct { ID uint32 ShaderType ShaderType }
func CompileShaderOfType ¶ added in v0.12.12
func CompileShaderOfType(shaderSource []byte, shaderType ShaderType) (Shader, error)
type ShaderProgram ¶
func LoadAndCompileCombinedShader ¶ added in v0.12.12
func LoadAndCompileCombinedShader(shaderPath string) (ShaderProgram, error)
func LoadAndCompileCombinedShaderSrc ¶ added in v0.12.12
func LoadAndCompileCombinedShaderSrc(shaderSrc []byte) (ShaderProgram, error)
func NewShaderProgram ¶
func NewShaderProgram() (ShaderProgram, error)
func (*ShaderProgram) AttachShader ¶
func (sp *ShaderProgram) AttachShader(shader Shader)
func (*ShaderProgram) Link ¶
func (sp *ShaderProgram) Link()
type ShaderType ¶
type ShaderType int
const ( VertexShaderType ShaderType = gl.VERTEX_SHADER FragmentShaderType ShaderType = gl.FRAGMENT_SHADER )
Click to show internal directories.
Click to hide internal directories.