icetSetColorFormat(3) | IceT Reference | icetSetColorFormat(3) |
icetSetColorFormat,icetSetDepthFormat-- specifies the buffer formats for IceT to use when creating images
#include <IceT.h>
void icetSetColorFormat( | IceTEnum | color_format ); |
void icetSetDepthFormat( | IceTEnum | depth_format ); |
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 functions (icetDrawFrame or icetGLDrawFrame). It is also the format expected for image buffers passed to icetCompositeImage.
The following color_formats are valid for use in icetSetColorFormat.
The following depth_formats are valid for use in icetSetDepthFormat.
The color and depth formats are stored in the ICET_COLOR_FORMAT and ICET_DEPTH_FORMAT state variables, respectively.
None.
None known.
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 icetDrawFrame, icetGLDrawFrame, or icetCompositeImage. Doing otherwise would create inconsistencies in the images created and composited together.
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.
September 22, 2014 | IceT Reference |