rlgl: rlSetClipPlanes, rlGetCullDistanceNear and rlGetCullDistanceFar added
This commit is contained in:
parent
692079f471
commit
5d9fdd5313
2 changed files with 38 additions and 0 deletions
|
@ -127,6 +127,23 @@ func Viewport(x int32, y int32, width int32, height int32) {
|
|||
C.rlViewport(cx, cy, cwidth, cheight)
|
||||
}
|
||||
|
||||
// SetClipPlanes - Set clip planes distances
|
||||
func SetClipPlanes(nearPlane, farPlane float64) {
|
||||
C.rlSetClipPlanes(C.double(nearPlane), C.double(farPlane))
|
||||
}
|
||||
|
||||
// GetCullDistanceNear - Get cull plane distance near
|
||||
func GetCullDistanceNear() float64 {
|
||||
ret := C.rlGetCullDistanceNear()
|
||||
return float64(ret)
|
||||
}
|
||||
|
||||
// GetCullDistanceFar - Get cull plane distance far
|
||||
func GetCullDistanceFar() float64 {
|
||||
ret := C.rlGetCullDistanceFar()
|
||||
return float64(ret)
|
||||
}
|
||||
|
||||
// Begin - Initialize drawing mode (how to organize vertex)
|
||||
func Begin(mode int32) {
|
||||
cmode := C.int(mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue