Skip to content

GetCameraBuffer

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

GetCameraBuffer

GetCameraBuffer:Int32 camera:Int32
Parameter Mode Type Default Description
camera In Int32 required Camera handle.

Returns: The buffer, or 0 if the camera draws into the buffer of SetBuffer. A buffer of a texture that was freed gives 0.

Description

Gives the buffer that a camera always draws into, set by SetCameraBuffer. This is a BlitzLLVM extension.

Examples

Graphics3D 320, 240, 0, 2
camera = CreateCamera()
Print GetCameraBuffer(camera) ; 0
SetCameraBuffer camera, BackBuffer()
Print GetCameraBuffer(camera) = BackBuffer() ; 1

Related Commands

CameraClsColor, CameraClsMode, GetCameraClipPlane, GetCameraClipPlaneEnabled, GetCameraProjectionMatrix, GetCameraStencil, GetCameraViewMatrix, SetCameraBuffer

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally