GetCameraQuantity
Quantity = GetCameraQuantity()
 
Parameters: NONE
Returns:

    Quantity = The number of Cameras that PB currently has provision for
 

      The GetCameraQuantity() function returns the max number of Cameras that PB will allow.



FACTS:


      * While a command sets GetQuantity command will return the max Media Quantity of this command set. Not all command sets, allow you dynamically resize the media quantity yourself.




Mini Tutorial:


      This example displays the default media quantity values of various command sets.

  
; Display the Media Quantity Values of various command sets
  
  Print "  Max Banks:"+Str$(GetBankQuantity())
  Print "Max Cameras:"+Str$(GetCameraQuantity())
  Print "   Max Dlls:"+Str$(GetDllQuantity())
  Print "  Max Files:"+Str$(GetFileQuantity())
  Print "  Max Fonts:"+Str$(GetFontQuantity())
  Print " Max Images:"+Str$(GetImageQuantity())
  Print "   Max Maps:"+Str$(GetMapQuantity())
  Print " Max Musics:"+Str$(GetMusicQuantity())
  Print "Max Sprites:"+Str$(GetSpriteQuantity())
  Print " Max Shapes:"+Str$(GetShapeQuantity())
  Print " Max Sounds:"+Str$(GetSoundQuantity())
  Print " Max Worlds:"+Str$(GetWorldQuantity())
  
; Show the user the screen and wait for a key to be pressed
  Sync
  WaitKey
  



Example output. Note: The output depends upon what version of PB your running, so the results may differ.

  
  Max Banks:1024
  Max Cameras:16
  Max Dlls:256
  Max Files:64
  Max Fonts:64
  Max Images:1500
  Max Maps:128
  Max Musics:64
  Max Sprites:1500
  Max Shapes:500
  Max Sounds:1024
  Max Worlds:64
  


 
Related Info: BankQuantity | FontQuantity | ImageQuantity | ShapeQuantity | SpriteQuantity :
 


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