GetFreeCamera
FreeCameraIndex = GetFreeCamera()
 
Parameters: NONE
Returns:

    FreeCameraIndex = The Index value of a Image that is currently not in use
 

      The GetFreeCamera function returns the Index of a Camera that is NOT currently in use.



FACTS:


      * GetFreeCamera will return a ZERO if the max number of camera Indexes have been exceeded.

      * See NewCamera for dynamic creation




Mini Tutorial:


      Requesting a free camera index, the creating the camera.

  
  
; Ask PlayBASIC for a Camera Index that is currently
; free for use.
  MyCamera=GetFreeCamera()
  
; Create this camera
  CreateCamera MyCamera
  
; Display the status of this camera
  Print "my Camera ="+Str$(MyCamera)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  My Camera =1
  



 
Related Info: CreateCamera | DeleteCamera | GetCameraQuantity | NewCamera :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com