|
GetCameraSurface | ||||
Surface = GetCameraSurface(CameraIndex) | ||||
Parameters: CameraIndex = The index of the camera to query |
||||
Returns: Surface = The drawing surface of this camera |
||||
The GetCameraSurface function returns the surface this camera is attached to. When a camera is created, it'll be attached to the current render surface(See GetSurface). Which can either be an image or the screen. [Surface Return Values]: 0 = Camera is attached to the screen 1 = Camera is attached to image 1 2 = Camera is attached to image 2 etc etc FACTS: * When a camera is created it is attached to current draw surface. Which will be either the SCREEN or an IMAGE. Mini Tutorial: This example simply creates a camera and display the surface the camera is attached to. Which in this case, will be the screen.
This example would output.
Mini Tutorial: This example is the same as the previous, except this time the newly create camera get attached to an Image, since that's the current surface at the time the camera was created.
This example would output.
|
Related Info: | CreateCamera | NewCamera : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |