Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

icetgldrawframe(3) [debian man page]

icetGLDrawFrame(3)						  IceT Reference						icetGLDrawFrame(3)

NAME
icetGLDrawFrame -- renders and composites a frame using OpenGL Synopsis #include <IceTGL.h> void icetGLDrawFrame( void ); Description Initiates a frame draw using the current OpenGL transformation matrices (modelview and projection). Before IceT may render an image, the tiled display needs to be defined (using icetAddTile), the drawing function needs to be set (using icetGLDrawCallback), and composite strategy must be set (using icetStrategy). The single image sub-strategy may also optionally be set (using icetSingleImageStrategy). All processes in the current IceT context must call icetGLDrawFrame for it to complete. The OpenGL projection matrix and modelview matrix must be set using glLoadMatrix or a number of other functions. Likewise, the OpenGL back- ground color must be set with glClearColor. IceT will use the matrices to determine what pixels need to be rendered and composited. IceT will also modify the projection matrix to project onto (or in between) tiles. If ICET_GL_DISPLAY is enabled, then the fully composited image is written back to the OpenGL framebuffer for display. It is the applica- tion's responsibility to synchronize the processes and swap front and back buffers. If the OpenGL background color is set to something other than black, ICET_GL_DISPLAY_COLORED_BACKGROUND should also be enabled. Displaying with ICET_GL_DISPLAY_COLORED_BACKGROUND disabled may be slightly faster (depending on graphics hardware) but can result in black rectangles in the background. If ICET_GL_DISPLAY_INFLATE is enabled and the size of the renderable window (determined by the current OpenGL viewport) is greater than that of the tile being displayed, then the image will first be ``inflated'' to the size of the actual display. This inflation will be assisted by texture hardware if ICET_GL_DISPLAY_INFLATE_WITH_HARDWARE is on. If ICET_GL_DISPLAY_INFLATE is disabled, the image is drawn at its original resolution at the lower left corner of the display. The image remaining in the frame buffer is undefined if ICET_GL_DISPLAY is disabled or the process is not displaying a tile. Errors ICET_INVALID_OPERATION Raised if the drawing callback has not been set. Also can be raised if icetDrawFrame is called recursively, probably from within the drawing callback. ICET_OUT_OF_MEMORY Not enough memory left to hold intermittent frame buffers and other temporary data. icetGLDrawFrame may also indirectly raise an error if there is an issue with the strategy or callback. Warnings None. Bugs If compositing with color blending on, the image returned may have a black background instead of the background_color requested. This can be corrected by blending the returned image over the desired background. This will be done for you if the ICET_CORRECT_COLORED_BACKGROUND is on. Copyright Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetAddTile(3), icetBoundingBox(3), icetBoundingVertices(3), icetDrawFrame(3), icetGLDrawCallback(3), icetSingleImageStrategy(3), icetStrategy(3) IceT Reference September 20, 2010 icetGLDrawFrame(3)

Check Out this Related Man Page

icetSetColorFormat(3)						  IceT Reference					     icetSetColorFormat(3)

NAME
icetSetColorFormat,icetSetDepthFormat-- specifies the buffer formats for IceT to use when creating images Synopsis #include <IceT.h> void icetSetColorFormat( IceTEnum color_format ); void icetSetDepthFormat( IceTEnum depth_format ); Description When IceT creates image objects, it uses the formats specified by icetSetColorFormatand icetSetDepthFormat.These will be the formats of images passed to drawing callbacks (specified by icetDrawCallback or icetGLDrawCallback) and of images returned from frame drawing func- tions (icetDrawFrame or icetGLDrawFrame). The following color_formats are valid for use in icetSetColorFormat. ICET_IMAGE_COLOR_RGBA_UBYTE Each entry is an RGBA color tuple. Each component is valued in the range from 0 to 255 and is stored as an 8-bit integer. The buf- fer will always be allocated on memory boundaries such that each color value can be treated as a single 32-bit integer. ICET_IMAGE_COLOR_RGBA_FLOAT Each entry is an RGBA color tuple. Each component is in the range from 0.0 to 1.0 and is stored as a 32-bit float. ICET_IMAGE_COLOR_NONE No color values are stored in the image. The following depth_formats are valid for use in icetSetDepthFormat. ICET_IMAGE_DEPTH_FLOAT Each entry is in the range from 0.0 (near plane) to 1.0 (far plane) and is stored as a 32-bit float. ICET_IMAGE_DEPTH_NONE No depth values are stored in the image. The color and depth formats are stored in the ICET_COLOR_FORMAT and ICET_DEPTH_FORMAT state variables, respectively. Errors ICET_INVALID_OPERATION icetSetColorFormator icetSetDepthFormatwas called while IceT was drawing a frame. This probably means that you called icetSetColor- Format in a drawing callback. You cannot do that. Call this function before starting the draw operation. ICET_INVALID_ENUM The color_format or depth_format given is invalid. Warnings None. Bugs None known. Notes Calling either icetSetColorFormator icetSetDepthFormatdoes not change the format of any existing images. It only changes any subsequently created images. The color format must be set before calling either icetDrawFrame or icetGLDrawFrame. Doing otherwise would create inconsistencies in the images created and composed together. Copyright Copyright (C)2010 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. This source code is released under the New BSD License. See Also icetImageGetColorFormat(3), icetImageGetDepthFormat(3) IceT Reference August 9, 2010 icetSetColorFormat(3)
Man Page