Sort functions
This commit is contained in:
parent
f548130d14
commit
9deb95087d
1 changed files with 16 additions and 16 deletions
|
@ -375,6 +375,22 @@ func GetMouseRay(mousePosition Vector2, camera Camera) Ray {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetCameraMatrix - Returns camera transform matrix (view matrix)
|
||||||
|
func GetCameraMatrix(camera Camera) Matrix {
|
||||||
|
ccamera := camera.cptr()
|
||||||
|
ret := C.GetCameraMatrix(*ccamera)
|
||||||
|
v := newMatrixFromPointer(unsafe.Pointer(&ret))
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetCameraMatrix2D - Returns camera 2d transform matrix
|
||||||
|
func GetCameraMatrix2D(camera Camera2D) Matrix {
|
||||||
|
ccamera := camera.cptr()
|
||||||
|
ret := C.GetCameraMatrix2D(*ccamera)
|
||||||
|
v := newMatrixFromPointer(unsafe.Pointer(&ret))
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
// GetWorldToScreen - Returns the screen space position from a 3d world space position
|
// GetWorldToScreen - Returns the screen space position from a 3d world space position
|
||||||
func GetWorldToScreen(position Vector3, camera Camera) Vector2 {
|
func GetWorldToScreen(position Vector3, camera Camera) Vector2 {
|
||||||
cposition := position.cptr()
|
cposition := position.cptr()
|
||||||
|
@ -402,22 +418,6 @@ func GetScreenToWorld2D(position Vector2, camera Camera2D) Vector2 {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCameraMatrix - Returns camera transform matrix (view matrix)
|
|
||||||
func GetCameraMatrix(camera Camera) Matrix {
|
|
||||||
ccamera := camera.cptr()
|
|
||||||
ret := C.GetCameraMatrix(*ccamera)
|
|
||||||
v := newMatrixFromPointer(unsafe.Pointer(&ret))
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetCameraMatrix2D - Returns camera 2d transform matrix
|
|
||||||
func GetCameraMatrix2D(camera Camera2D) Matrix {
|
|
||||||
ccamera := camera.cptr()
|
|
||||||
ret := C.GetCameraMatrix2D(*ccamera)
|
|
||||||
v := newMatrixFromPointer(unsafe.Pointer(&ret))
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetTargetFPS - Set target FPS (maximum)
|
// SetTargetFPS - Set target FPS (maximum)
|
||||||
func SetTargetFPS(fps int32) {
|
func SetTargetFPS(fps int32) {
|
||||||
cfps := (C.int)(fps)
|
cfps := (C.int)(fps)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue