icetDisable3
Part of icetEnable(3).
Usage
#include <IceT.h>
| void icetEnable | ( | IceTEnum | pname ); |
| void icetDisable | ( | IceTEnum | pname ); |
Overview
The icetEnableand icetDisablefunctions turn various IceT features on and off. pname is a symbolic constant representing the feature to be turned on or off. Valid values for pname are:
ICET_COLLECT_IMAGES-
When this option is on (the default) images partitions are always collected to display processes. When this option is turned off, the strategy has the option of leaving images partitioned among processes. Each process containing part of a tile's image will return the entire buffer from
icetDrawFrame,icetGLDrawFrame, oricetCompositeImagein anIceTImageobject. However, only certain pixels will be valid. The state variablesICET_VALID_PIXELS_TILE,ICET_VALID_PIXELS_OFFSET, andICET_VALID_PIXELS_NUMgive which tile the pixels belong to and what range of pixels are valid.
ICET_COMPOSITE_ONE_BUFFER-
Turn this option on when performing z-buffer compositing of a color image and the only result you need is the color image itself (not the depth buffer). This is common if you are just creating an image and are not interested in doing depth queries. This option is on by default.
ICET_CORRECT_COLORED_BACKGROUND-
Colored backgrounds are problematic when performing color blended compositing in that the background color will be additively blended from each image. Enabling this flag will internally cause the color to be reset to black and then cause the color to be blended back into the resulting images. This flag is disabled by default.
ICET_FLOATING_VIEWPORT-
.igfloating viewport If enabled, the projection will be shifted such that the geometry will be rendered in one shot whenever possible, even if the geometry straddles up to four tiles. This flag is enabled by default.
ICET_INTERLACE_IMAGES-
If enabled, pixels in images (might be) shuffled to better load balance the compositing work. This flag is enabled by default.
ICET_ORDERED_COMPOSITE-
If enabled, the image composition will be performed in the order specified by the last call to
icetCompositeOrder, assuming the current strategy (specified by a call toicetStrategy) supports ordered composition. Generally, you want to enable ordered compositing if doing color blending and disable if you are doing z-buffer comparisons. If enabled, you should callicetCompositeOrderbetween each frame to update the image order as camera angles change. This flag is disabled by default.
ICET_RENDER_EMPTY_IMAGES-
If disabled, IceT will never invoke the drawing callback.igdrawing callback if all geometry is outside the clipping planes of the current projection. If enabled, IceT will still invoke the drawing callback if the compositing strategy has requested the tile. However, most compositing strategies do not request images for all tiles. The floating viewport can also consolidate up to four renderings into one. To ensure that the drawing callback is invoked for all tiles on all processes, enable
ICET_RENDER_EMPTY_IMAGES, disableICET_FLOATING_VIEWPORT, and set the strategy (usingicetStrategy) toICET_STRATEGY_SEQUENTIAL. This flag is disabled by default.
In addition, if you are using the OpenGL layer (i.e., have called icetGLInitialize), these options, defined in IceTGL.h, are also available.
ICET_GL_DISPLAY-
If enabled, the final, composited image for each tile is written back to the frame buffer before the return of
icetGLDrawFrame. This flag is enabled by default.
ICET_GL_DISPLAY_COLORED_BACKGROUND-
If this and
ICET_GL_DISPLAYare enabled, IceT uses OpenGL blending to ensure that all background is set to the correct color. This flag is disabled by default. This option does not affect the images returned fromicetGLDrawFrame; it only affects the image in the OpenGL color buffer.
ICET_GL_DISPLAY_INFLATE-
If this and
ICET_GL_DISPLAYare enabled and the renderable window is larger than the displayed tile (as determined by the current OpenGL viewport), then resample the image to fit within the renderable window before writing back to frame buffer. This flag is disabled by default. This option does not affect the images returned fromicetGLDrawFrame; it only affects the image in the OpenGL color buffer. If this option is not enabled, then images are written at their natural size in the lower left corner of the window.
ICET_GL_DISPLAY_INFLATE_WITH_HARDWARE-
This option determines how images are inflated. When enabled (the default), images are inflated by creating a texture and allowing the hardware to inflate the image. When disabled, images are inflated on the CPU. This option has no effect unless both
ICET_GL_DISPLAYandICET_GL_DISPLAY_INFLATEare also enabled.
Errors
ICET_INVALID_VALUE-
If pname is not a feature to be enabled or disabled.
Warnings
None.
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 3 times.