Skip to content

SetCameraClipPlaneEnabled

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

SetCameraClipPlaneEnabled

SetCameraClipPlaneEnabled:Void camera:Int32, index:Int32, enabled:Int32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
index In Int32 required Which plane, from 0 to 5.
enabled In Int32 required True to cut with the plane, False to stop.

Description

Turns one of the 6 clip planes of a camera on or off. The plane itself is set with SetCameraClipPlane and is kept while it is off. All planes of a new camera are off. This is a BlitzLLVM extension.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
camera = CreateCamera()
cube = CreateCube()
PositionEntity cube, 0, 0, 5
SetCameraClipPlane camera, 0, 1, 0, 0, 0
While Not KeyHit(1)
	; Hold space to cut away the left half of the cube.
	SetCameraClipPlaneEnabled camera, 0, KeyDown(57)
	RenderWorld
	Flip
Wend

Related Commands

GetCameraClipPlane, GetCameraClipPlaneEnabled, SetCameraBuffer, SetCameraClipPlane, SetCameraProjectionMatrix, SetCameraStencil, SetCameraStencilClear, SetCameraViewMatrix

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally