|
GetCurrentSceneOffset | ||
Offset = GetCurrentSceneOffset() | ||
Parameters: NONE | ||
Returns: Offset = The current offset (size) of the data captured ot the scene cache |
||
The GetCurrentSceneOffset function will return the current size of the Scene buffer cache. The scene buffer works much like a stack or heap, where the heap has a fixed size, if your program overflows the current scene buffer size, the it's bound to crash. You can of course expand the cache size by using the SceneCacheSize command. FACTS: * None Mini Tutorial: This example creates a camera, then resizes the scene buffer size from it's default of 460,000 bytes, to a much smaller 5000 bytes (5k) then captures some circles to the scene. As each circle is captured, it displays the current offset (amount of used space) in the scene buffer. Once eveything is captured it draws the camera to display the scene.
In PlayBasic V1.63 this example will output the following text.
|
Related Info: | CameraBasics | CaptureToScene | DrawCamera | DrawGFXImmediate | GetSceneCacheSize | SceneCacheSize : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |