示例#1
0
文件: gl_gl2.go 项目: EngoEngine/gl
func (c *Context) Uniform4f(location *UniformLocation, x, y, z, w float32) {
	gl.Uniform4f(location.int32, x, y, z, w)
}
示例#2
0
文件: gl_opengl.go 项目: tanema/amore
// Uniform4f writes a vec4 uniform variable.
//
// http://www.khronos.org/opengles/sdk/docs/man3/html/glUniform.xhtml
func Uniform4f(dst Uniform, v0, v1, v2, v3 float32) {
	gl.Uniform4f(dst.Value, v0, v1, v2, v3)
}
示例#3
0
文件: gg.go 项目: dmac/gg
func (*backend) Uniform4f(u *gg.Uniform, v0, v1, v2, v3 float32) {
	gl.Uniform4f(u.Value.(int32), v0, v1, v2, v3)
}