UpdateCameraPro function added in raylib/rcamera.go
This commit is contained in:
parent
9e86471b2f
commit
70e5708243
1 changed files with 6 additions and 0 deletions
|
@ -13,3 +13,9 @@ func UpdateCamera(camera *Camera, mode CameraMode) {
|
|||
ccamera := camera.cptr()
|
||||
C.UpdateCamera(ccamera, C.int(mode))
|
||||
}
|
||||
|
||||
// UpdateCameraPro - Update camera movement/rotation
|
||||
func UpdateCameraPro(camera *Camera, movement Vector3, rotation Vector3, zoom float32) {
|
||||
ccamera := camera.cptr()
|
||||
C.UpdateCameraPro(ccamera, *movement.cptr(), *rotation.cptr(), C.float(zoom))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue