icetSetColorFormat(3)
β¨ icetSetColorFormat β IceT Reference β¨
okay bestie, welcome to the IceT Reference page for icetSetColorFormat and its ride-or-die twin icetSetDepthFormat π this is the manual page (3) that tells you how to pick which buffer formats IceT uses when it makes images. it's giving "setting the vibe before the party starts" and honestly? iconic.
πΈ 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 π
so, when IceT creates image objects, it uses the formats you specify with icetSetColorFormat and icetSetDepthFormat. no cap. these are the formats of:
- images passed to drawing callbacks (specified by
icetDrawCallbackoricetGLDrawCallback) ποΈ - images returned from frame drawing functions (
icetDrawFrameoricetGLDrawFrame) πΌοΈ - and also the format expected for image buffers passed to
icetCompositeImage
like, it's the same format everywhere. consistency queen π.
π color_formats (for icetSetColorFormat)
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 from0to255and is stored as an 8-bit integer. the buffer will always be allocated on memory boundaries such that each color value can be treated as a single 32-bit integer. slay, alignment β¨ICET_IMAGE_COLOR_RGBA_FLOATβ each entry is an RGBA color tuple. each component is in the range from0.0to1.0and is stored as a 32-bit float. soft launch of your colors fr π«ΆICET_IMAGE_COLOR_RGB_FLOATβ each entry is an RGB color triple. each component is in the range from0.0to1.0and is stored as a 32-bit float. > note that there is no alpha channel, so the color blending composite mode will not work with this color format. π no alpha no blending, iykykICET_IMAGE_COLOR_NONEβ no color values are stored in the image. it's giving minimalist. literally nothing π³οΈ
π depth_formats (for icetSetDepthFormat)
The following depth_formats are valid for use in icetSetDepthFormat.
ICET_IMAGE_DEPTH_FLOATβ each entry is in the range from0.0(near plane) to1.0(far plane) and is stored as a 32-bit float. main character energy from near to far πICET_IMAGE_DEPTH_NONEβ no depth values are stored in the image. flat. no depth. (emotionally too, bestie π)
the color and depth formats are stored in the ICET_COLOR_FORMAT and ICET_DEPTH_FORMAT state variables, respectively. that's where they live π
π Errors π
ICET_INVALID_OPERATIONβicetSetColorFormatoricetSetDepthFormatwas called while IceT was drawing a frame. this probably means that you calledicetSetColorFormatin a drawing callback. you cannot do that. π« call this function before starting the draw operation. periodt.ICET_INVALID_ENUMβ thecolor_formatordepth_formatgiven is invalid. not a real format bestie, try again π
π Warnings π
None. we're safe, we're cute, we're fine π
π Bugs π
None known. no drama on this page π§
β Notes β
- calling either
icetSetColorFormatoricetSetDepthFormatdoes not change the format of any existing images. it only changes any subsequently created images. so like, no retroactive glow-ups πΈ - the color format must be set before calling
icetDrawFrame,icetGLDrawFrame, oricetCompositeImage. doing otherwise would create inconsistencies in the images created and composited together. > do not skip this step, it will not end well π
π 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 π«Ά
okay that's the whole page bestie, go set your formats and thrive β¨ this was the IceT Reference, dated September 22, 2014 β mwah, love you, bye π
π¦ where this page comes from
- debian bookworm: paraview 5.11.0+dfsg-1+b1 Β· BSD-3-Clause
- debian trixie: paraview 5.13.2+dfsg-3 Β· BSD-3-Clause
- ubuntu jammy: paraview 5.10.0~rc1-1build3 Β· BSD-3-Clause
- ubuntu noble: paraview 5.11.2+dfsg-6build5 Β· BSD-3-Clause
- ubuntu questing: paraview 5.13.2+dfsg-3
- ubuntu resolute: paraview 6.0.1+dfsg1-7 Β· BSD-3-Clause
- ubuntu stonking: paraview 6.1.1+dfsg1-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms