icetGetError(3)

✨ icetGetError(3) β€” IceT Reference ✨

okay bestie, welcome to the IceT Reference πŸ’– this is the page for icetGetError, and it's literally the "what went wrong tho" function. let's go 🫢


🌸 NAME 🌸

icetGetError β€” return the last error condition. yes, the last one. not all of them. the one. πŸ’…


✨ Synopsis ✨

#include <IceT.h>

GLenum icetGetError(   void   );

that's it. no args, no drama, just vibes and a GLenum coming back at you πŸŽ€


πŸ’œ Description πŸ’œ

so here's the tea: this function retrieves the first error or warning condition that happened since the last time you called icetGetError, or since your program started up β€” whichever of those two came later. iykyk 🧚

and the important part, bestie: once an error condition has been retrieved with icetGetError, the error condition gets reset to no error and it cannot be retrieved again. it's giving one-time-only, no takebacks, the receipt is gone 😭


πŸ‘‘ Return Value πŸ‘‘

you're gonna get back one of these flags, and you need to know them fr fr:

  • ICET_INVALID_VALUE β€” an inappropriate value has been passed to a function. like, girl, that number was not it πŸ’€
  • ICET_INVALID_OPERATION β€” an inappropriate function has been called. wrong function at the wrong time, embarrassing πŸ™ˆ
  • ICET_OUT_OF_MEMORY β€” IceT has ran out of memory for buffer space. she's full, there's no room, it's over 😭
  • ICET_BAD_CAST β€” a function has been passed a value of the wrong type. wrong type bestie, that's a whole different species 🌸
  • ICET_INVALID_ENUM β€” a function has been passed an invalid constant. that constant? not a real one πŸ’…
  • ICET_SANITY_CHECK_FAIL β€” an internal error (or warning) has occurred. inside job, we don't talk about it ✨
  • ICET_NO_ERROR β€” no error has been raised since the last call to icetGetError. we're clean, we're thriving, main character energy πŸ‘‘

πŸ’€ Bugs πŸ’€

there is genuinely no way to tell if the value you got back was caused by an error or by a warning. they're the same flag. they're wearing the same outfit. you cannot tell them apart 😭

πŸ¦‹ Notes πŸ¦‹

the error value is not context dependent. periodt. πŸ’–


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 🌈


okay that's the whole page!! this was the IceT Reference, from way back on August 9, 2010 πŸ•°οΈ (yes the source/version and date, we're keeping the receipts πŸ’…). slay, go check your error flags, and remember: icetGetError only tells you once πŸ’–πŸ«Άβœ¨