Skip to content

GetCameraProjectionMatrix

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

GetCameraProjectionMatrix

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

Returns: The projection matrix.

Description

Gives the projection matrix of a camera, in the convention of SetCameraProjectionMatrix. Without a matrix of its own, it is the one that CameraZoom, CameraRange and CameraProjMode make for the size of the camera's viewport. This is a BlitzLLVM extension.

Examples

Graphics3D 320, 240, 0, 2
camera = CreateCamera()
CameraZoom camera, 2
Local m:FloatMatrix4x4 = GetCameraProjectionMatrix(camera)
Print m[0][0] ; 2.0

Related Commands

GetCameraBuffer, GetCameraClipPlane, GetCameraClipPlaneEnabled, GetCameraStencil, GetCameraViewMatrix, ResetCameraProjectionMatrix, ResetCameraViewMatrix, SetCameraProjectionMatrix

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally