|
CameraCls | ||
CameraCls CameraIndex, ClsFlag | ||
Parameters: CameraIndex = The Index of the Camera that you wish to change ClsFlag = On / off flag to toggle the cameras auto cls |
||
Returns: NONE | ||
CameraCls will set the CLS state of a camera. When a cameras CLS state is set to TRUE(1), It will clear the cameras view port (it's disaply/screen area) to the cameras current CLS Colour, before drawing whats in view. So the camera can have it's own default backdrop colour. You can set the CLS colour using the CameraClsColour command. FACTS: * When a camera has auto cls enabled. The Cls will occur before anything else is drawn. So the Cls colour can be thought of as the cameras backdrop colour. * Auto CLS will only clear the cameras viewport. Nothing outside this area will be cleared. * If your camera is attached to the screen, then it can often be faster to turn camera cls off and do a normal CLS. This is because the CLS operation is asynchronously , meaning that computers graphics chip can perform the clear operation, while the main CPU is running your program code. So it's doing two things at once. Mini Tutorial: This example creates a camera, adjusts it size to a custom view port, activates the Auto CLS an sets it's CLS colour to a bright green colour, before drawing a circle to the scene buffer and finally displaying the camera.
This example would output.
|
Related Info: | CameraClsColour | Cls | DrawAllCameras | DrawCamera | GetCameraCls | GetCameraClsColour : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |