Documentation ¶
Index ¶
- type Material
- func (m *Material) Bind()
- func (m *Material) Delete()
- func (m *Material) DisableAttribute(attribName string)
- func (m *Material) EnableAttribute(attribName string)
- func (m *Material) GetAttribLoc(attribName string) int32
- func (m *Material) GetUnifLoc(uniformName string) int32
- func (m *Material) SetUnifFloat32(uniformName string, val float32)
- func (m *Material) SetUnifInt32(uniformName string, val int32)
- func (m *Material) SetUnifMat2(uniformName string, mat2 *gglm.Mat2)
- func (m *Material) SetUnifMat3(uniformName string, mat3 *gglm.Mat3)
- func (m *Material) SetUnifMat4(uniformName string, mat4 *gglm.Mat4)
- func (m *Material) SetUnifVec2(uniformName string, vec2 *gglm.Vec2)
- func (m *Material) SetUnifVec3(uniformName string, vec3 *gglm.Vec3)
- func (m *Material) SetUnifVec4(uniformName string, vec4 *gglm.Vec4)
- func (m *Material) UnBind()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Material ¶
type Material struct { Name string ShaderProg shaders.ShaderProgram DiffuseTex uint32 UnifLocs map[string]int32 AttribLocs map[string]int32 }
func NewMaterial ¶
func NewMaterialSrc ¶ added in v0.12.12
func (*Material) DisableAttribute ¶
func (*Material) EnableAttribute ¶
func (*Material) GetAttribLoc ¶
func (*Material) GetUnifLoc ¶ added in v0.0.6
func (*Material) SetUnifFloat32 ¶
func (*Material) SetUnifInt32 ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.