|
@@ -664,9 +664,9 @@ func (gs *GLS) UniformMatrix4fv(location int32, count int32, transpose bool, pm
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Uniform1fv sets the value of one or many float uniform variables for the current program object.
|
|
// Uniform1fv sets the value of one or many float uniform variables for the current program object.
|
|
|
-func (gs *GLS) Uniform1fv(location int32, count int32, v []float32) {
|
|
|
|
|
|
|
+func (gs *GLS) Uniform1fv(location int32, count int32, v *float32) {
|
|
|
|
|
|
|
|
- C.glUniform1fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0]))
|
|
|
|
|
|
|
+ C.glUniform1fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v))
|
|
|
gs.stats.Unisets++
|
|
gs.stats.Unisets++
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -677,12 +677,6 @@ func (gs *GLS) Uniform2fv(location int32, count int32, v *float32) {
|
|
|
gs.stats.Unisets++
|
|
gs.stats.Unisets++
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (gs *GLS) Uniform2fvUP(location int32, count int32, v unsafe.Pointer) {
|
|
|
|
|
-
|
|
|
|
|
- C.glUniform2fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v))
|
|
|
|
|
- gs.stats.Unisets++
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// Uniform3fv sets the value of one or many vec3 uniform variables for the current program object.
|
|
// Uniform3fv sets the value of one or many vec3 uniform variables for the current program object.
|
|
|
func (gs *GLS) Uniform3fv(location int32, count int32, v *float32) {
|
|
func (gs *GLS) Uniform3fv(location int32, count int32, v *float32) {
|
|
|
|
|
|
|
@@ -690,20 +684,8 @@ func (gs *GLS) Uniform3fv(location int32, count int32, v *float32) {
|
|
|
gs.stats.Unisets++
|
|
gs.stats.Unisets++
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (gs *GLS) Uniform3fvUP(location int32, count int32, v unsafe.Pointer) {
|
|
|
|
|
-
|
|
|
|
|
- C.glUniform3fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v))
|
|
|
|
|
- gs.stats.Unisets++
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// Uniform4fv sets the value of one or many vec4 uniform variables for the current program object.
|
|
// Uniform4fv sets the value of one or many vec4 uniform variables for the current program object.
|
|
|
-func (gs *GLS) Uniform4fv(location int32, count int32, v []float32) {
|
|
|
|
|
-
|
|
|
|
|
- C.glUniform4fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0]))
|
|
|
|
|
- gs.stats.Unisets++
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-func (gs *GLS) Uniform4fvUP(location int32, count int32, v unsafe.Pointer) {
|
|
|
|
|
|
|
+func (gs *GLS) Uniform4fv(location int32, count int32, v *float32) {
|
|
|
|
|
|
|
|
C.glUniform4fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v))
|
|
C.glUniform4fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v))
|
|
|
gs.stats.Unisets++
|
|
gs.stats.Unisets++
|