fix GetScreenToWorldRay* cgo functions
This commit is contained in:
parent
9e7c7db0ec
commit
ffc0ab4fc6
1 changed files with 2 additions and 2 deletions
|
@ -637,7 +637,7 @@ func GetMouseRay(mousePosition Vector2, camera Camera) Ray {
|
|||
func GetScreenToWorldRay(position Vector2, camera Camera) Ray {
|
||||
cposition := position.cptr()
|
||||
ccamera := camera.cptr()
|
||||
ret := C.GetMouseRay(*cposition, *ccamera)
|
||||
ret := C.GetScreenToWorldRay(*cposition, *ccamera)
|
||||
v := newRayFromPointer(unsafe.Pointer(&ret))
|
||||
return v
|
||||
}
|
||||
|
@ -648,7 +648,7 @@ func GetScreenToWorldRayEx(position Vector2, camera Camera, width, height int32)
|
|||
ccamera := camera.cptr()
|
||||
cwidth := (C.int)(width)
|
||||
cheight := (C.int)(height)
|
||||
ret := C.GetMouseRay(*cposition, *ccamera, cwidth, cheight)
|
||||
ret := C.GetScreenToWorldRayEx(*cposition, *ccamera, cwidth, cheight)
|
||||
v := newRayFromPointer(unsafe.Pointer(&ret))
|
||||
return v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue