The first argument is the item number of the screen group you wish to add. The second argument is a list of tag arguments that defines how the screen group is to be placed in the display. These tag arguments don't exist at this release, so set the tags to null.
int32 AddScreenGroup( Item screenGroup, TagArg *targs )
AddScreenGroup
returns 0 if the screen group was added to the display mechanism; it returns a negative number (an error code) if anything went wrong and the screen group was not added.
This call accepts two arguments, each the item number of a screen within the same screen group. The first screen is displayed in the odd field of a frame; the second screen is displayed in the even field of the same frame.
int32 DisplayScreen( Item ScreenItem0, Item ScreenItem1 )
If you want to display a stereoscopic image from a screen group, specify two different screens in this call: the right screen first, the left screen second. If you don't want a stereoscopic image and instead want the same image displayed in both fields of the frame, you can either specify the same screen for both arguments, or pass a null value for the second argument.
DisplayScreen()
returns 0 if it was successful. It returns a negative number (an error code) if it wasn't successful.
DisplayScreen()
during each vertical blank. In one frame, specify one screen alone for display, and render to the other screen. In the next frame, specify the second screen alone for display, and render to the first screen. Continue alternating as long as the animation continues.Double-buffering a stereoscopic display works much the same way, but instead of alternating between single screens in each frame, alternate between pairs of screens.
DisplayScreen()
call, it remains in the frame until the screen's screen group is removed. To remove a screen group, use this call:
This call accepts the item number of the screen group that you wish to remove. It removes the group from the Graphics folio's display mechanism, but the group's data structures and resource allocation remain intact. You can redisplay the group at any time with another
int32 RemoveScreenGroup( Item screenGroup )
AddScreenGroup()
call followed by a DisplayScreen()
call.
RemoveScreenGroup()
returns 0 if successful, and returns a negative number (an error code) if unsuccessful.
DeleteScreenGroup()
, and supply it with the item number of the screen group.Any time a task quits, any of its screen groups are automatically deleted.