|
CameraViewPort | ||
CameraViewPort CameraIndex, X1, Y1, X2, Y2 | ||
Parameters: CameraIndex = The Index of the Camera that you wish to set X1 = The TOP left hand X coordinate of the cameras view port Y1 = The TOP left hand Y coordinate of the cameras view port X2 = The BOTTOM right hand X coordinate of the cameras view port Y2 = The BOTTOM right hand Y coordinate of the cameras view port |
||
Returns: NONE | ||
CameraViewPort sets the rendering boundaries (the size) of a cameras draw area. By default these boundaries will be inherited from the size of the current rendering surface when the camera was created. So if the current render surface was the screen when the camera was created, the cameras viewport size will be 0,0,ScreenWidth,ScreenHeight by default FACTS: * The top left hand coordinate in the cameras view port, relates to the cameras actualy position in world space. * Cameras inherit their default viewport settingss from the surface their attached when their created. (the screen or image) 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 then finally displaying the camera.
This example would output.
|
Related Info: | GetCameraViewPortX1 | GetCameraViewPortX2 | GetCameraViewPortY1 | GetCameraViewPortY2 | ImageViewPort | RendertoImage | RenderToScreen | ScreenViewPort : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |