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