Skip to content

RenderCamera

Narta Xaymar Dirks edited this page Nov 23, 2026 · 1 revision

RenderCamera

RenderCamera:Void camera:Int32, tween:Float32=1
Parameter Mode Type Default Description
camera In Int32 required Camera handle.
tween In Float32 1 As for RenderWorld: 0 draws what CaptureWorld saw, 1 (the default) where everything is now.

Description

Draws the world as one camera sees it, and no other camera. The picture goes into the camera's own buffer (SetCameraBuffer) or, if it has none, into the current buffer, inside the camera's viewport and with its clear settings and fog. This is a BlitzLLVM extension.

A camera with CameraProjMode 0 draws nothing. A hidden camera is still drawn, so a program can hide the cameras it wants to draw itself and leave the others to RenderWorld.

Several RenderCamera calls in one frame are one frame: movies and the sounds of entities are brought up to date by the first call after a Flip, and TrisRendered counts the triangles of all of them. RenderWorld always starts a new count.

Examples

Graphics3D 320, 240, 0, 2
SetBuffer BackBuffer()
cube = CreateCube()
main = CreateCamera()
PositionEntity main, 0, 0, -5
map = CreateCamera()
CameraViewport map, 220, 10, 90, 90
PositionEntity map, 0, 20, 0
RotateEntity map, 90, 0, 0
HideEntity map ; RenderWorld leaves it alone.

RenderWorld
Text 10, 10, "Drawn by RenderWorld"
RenderCamera map ; The map is drawn on top of the text.
Flip

Related Commands

HWOrderIndependentTransparency, HWTexUnits, RenderWorld, Stats3D

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally