icetGLSetReadBuffer(3)
π icetGLSetReadBuffer(3) β IceT Reference π
okay bestie, listen up, this is the icetGLSetReadBuffer page from the IceT Reference and it's lowkey a tiny function but it's doing a LOT for you, so let's go β¨
π NAME π
icetGLSetReadBuffer β set the OpenGL buffer for images, bestie. that's it. that's the job. π¦
πΈ Synopsis πΈ
#include <IceTGL.h>
void icetGLSetReadBuffer( GLenum mode );
like, she's small. she's simple. she's iconic. π
β¨ Description β¨
so here's the vibe: this function picks which OpenGL buffer IceT is gonna read images from so it can composite them. π«Ά
once the draw callback (that's the one you set with icetGLDrawCallback) returns, IceT grabs the rendered image out of the OpenGL buffer that mode told it about. and get this β that same buffer is ALSO where fully composited images get written back, but only if the ICET_GL_DISPLAY option is turned on. so yeah, it pulls double duty. main character energy fr fr. π
mode is an OpenGL value that specifies the buffer. it gets passed straight to glReadBuffer and glDrawBuffer. the accepted values are:
GL_FRONTGL_BACKGL_LEFTGL_RIGHTGL_FRONT_LEFTGL_FRONT_RIGHTGL_BACK_LEFTGL_BACK_RIGHT- and any of the
GL_AUXiidentifiers π«
the current read buffer that's in use is stored in the ICET_GL_READ_BUFFER state variable, and the default value is GL_BACK. so if you don't say anything, that's where she's looking. no cap. π
π Errors π
ICET_INVALID_OPERATIONβ bestie,icetGLInitializehas not been called for this IceT context. you gotta init first, that's the rule. πICET_INVALID_ENUMβmodeis not a known OpenGL buffer identifier. she doesn't recognize that name, sorry. π
π Warnings π
None.
(yes really, none. a rare peaceful moment. enjoy it π§)
π Bugs π
ok so here's the tea: the check of mode is perfunctory. it just checks mode against a list of known buffers. that's it. it does not check to see if the buffer actually exists, and it does not check for any other buffers that might be defined in an OpenGL extension. so like... don't get too comfy. β
π 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 π
and that's the whole page, bestie! this gem is from the IceT Reference, dated August 9, 2010 β yeah she's an elder but she still ate, and she's still serving π πβ¨
π¦ 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