Update rcore
This commit is contained in:
parent
1a9e976d4c
commit
6eb8c8c1f6
1 changed files with 2 additions and 2 deletions
|
@ -575,7 +575,7 @@ func GetShaderLocationAttrib(shader Shader, attribName string) int32 {
|
||||||
func SetShaderValue(shader Shader, locIndex int32, value []float32, uniformType ShaderUniformDataType) {
|
func SetShaderValue(shader Shader, locIndex int32, value []float32, uniformType ShaderUniformDataType) {
|
||||||
cshader := shader.cptr()
|
cshader := shader.cptr()
|
||||||
clocIndex := (C.int)(locIndex)
|
clocIndex := (C.int)(locIndex)
|
||||||
cvalue := unsafe.SliceData(value)
|
cvalue := (*C.float)(unsafe.Pointer(&value[0]))
|
||||||
cuniformType := (C.int)(uniformType)
|
cuniformType := (C.int)(uniformType)
|
||||||
C.SetShaderValue(*cshader, clocIndex, unsafe.Pointer(cvalue), cuniformType)
|
C.SetShaderValue(*cshader, clocIndex, unsafe.Pointer(cvalue), cuniformType)
|
||||||
}
|
}
|
||||||
|
@ -584,7 +584,7 @@ func SetShaderValue(shader Shader, locIndex int32, value []float32, uniformType
|
||||||
func SetShaderValueV(shader Shader, locIndex int32, value []float32, uniformType ShaderUniformDataType, count int32) {
|
func SetShaderValueV(shader Shader, locIndex int32, value []float32, uniformType ShaderUniformDataType, count int32) {
|
||||||
cshader := shader.cptr()
|
cshader := shader.cptr()
|
||||||
clocIndex := (C.int)(locIndex)
|
clocIndex := (C.int)(locIndex)
|
||||||
cvalue := unsafe.SliceData(value)
|
cvalue := (*C.float)(unsafe.Pointer(&value[0]))
|
||||||
cuniformType := (C.int)(uniformType)
|
cuniformType := (C.int)(uniformType)
|
||||||
ccount := (C.int)(count)
|
ccount := (C.int)(count)
|
||||||
C.SetShaderValueV(*cshader, clocIndex, unsafe.Pointer(cvalue), cuniformType, ccount)
|
C.SetShaderValueV(*cshader, clocIndex, unsafe.Pointer(cvalue), cuniformType, ccount)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue