FutureBasic Logo

<<    Index    >> FutureBasic

SCNView   statement



Syntax
scnview tag, scene, rect, options, wndTag

Description
The scnview statement puts a new scnview in the current output window, or alters an existing view's characteristics.

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the view and that you refer to when altering or closing the view. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the view.
scene A SCNSceneRef.
rect The view's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the view.
(ii) A CGRect value
options The sceneview's rendering options:
SCNPreferLowPowerDeviceKey
SCNPreferredDeviceKey
SCNPreferredRenderingAPIKey
wndTag An optional parameter for when the view's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
 

Subclass
To subclass a nib scnview, set its class name to "SCNViewSC" in the nib.

Apple documentation
NSBox