|
|
| NewCamera | ||
| CameraIndex = NewCamera() | ||
| Parameters: NONE | ||
| Returns: CameraIndex = The Index of the newly created Camera |
||
NewCamera will initialize a user camera. When a camera is created it will attach it self to the current drawing surface (See GetSurface()). Normally this will be the screen, but they can be attached to images also. Moreover the camera will assume the size of the surface (image or screen) that it's attached to. Conceptually, Cameras are used to show a part of your game world from a particular view point. This allows the programmer to create worlds much larger than then screen, but still be able to easily display it. Cameras are used in conjunction with the scene and world buffer controls. I strongly advise reading CameraBasics tutorial in the About Section. FACTS: * By default when a camera is created, it attaches it'self to current drawing surface. From here it will inherit that surfaces size. * Cameras by default have CameraCLS backdrop enabled. Mini Tutorial: This example will create a camera than dispaly its properties for you.
This example would output with the program was running with the default 640*480 screen.
|
| Related Info: | CameraBasics | CaptureToScene | DeleteCamera | DrawCamera | GetCameraStatus | GetFreeCamera : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |