Skip to content

GetCameraClipPlane

Narta Xaymar Dirks edited this page Nov 25, 2026 · 2 revisions

GetCameraClipPlane

GetCameraClipPlane:FloatVector4 camera:Int32, index:Int32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
index In Int32 required Which plane, from 0 to 5.

Returns: A FloatVector4 with a, b, c and d of the plane. A plane that was never set is all 0.

Description

Gives back one of the 6 clip planes of a camera, as set with SetCameraClipPlane. Whether the plane is on is given by GetCameraClipPlaneEnabled. This is a BlitzLLVM extension.

Examples

Graphics3D 320, 240, 0, 2
camera = CreateCamera()
SetCameraClipPlane camera, 2, 0, 1, 0, -1
Local plane:FloatVector4 = GetCameraClipPlane(camera, 2)
Print plane[0] + " " + plane[1] + " " + plane[2] + " " + plane[3]
WaitKey

Related Commands

CameraClsColor, GetCameraBuffer, GetCameraClipPlaneEnabled, GetCameraProjectionMatrix, GetCameraStencil, GetCameraViewMatrix, SetCameraClipPlane, SetCameraClipPlaneEnabled

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally