rtcRetainGeometry(3)
๐ rtcRetainGeometry(3) ๐
okay bestie, welcome to the Embree Ray Tracing Kernels 3 manny for rtcRetainGeometry โ she's short, she's sweet, she's the queen of "pls don't delete my geometry yet" ๐
โจ NAME โจ
rtcRetainGeometry โ increments the geometry reference count ๐งฎ
โจ SYNOPSIS โจ
#include <embree3/rtcore.h>
void rtcRetainGeometry(RTCGeometry geometry);
โจ DESCRIPTION โจ
So like. Geometry objects are reference counted. That's the whole vibe. ๐ฆ
The rtcRetainGeometry function increments the reference count of the geometry object you pass in (that's the geometry argument, babes). Basically you're telling the universe "hey, I'm still using this, don't you dare free it."
And the way that this function teams up with rtcReleaseGeometry? iconic. Together they let you use the internal reference counting inside a C++ wrapper class to handle the ownership of the object. Like, the wrapper gets to be the main character of memory management. ๐
No cap, that's literally what it's for.
โจ EXIT STATUS โจ
If something goes wrong, an error code gets set, and you can go ask about it with rtcGetDeviceError. Like, it's not gonna text you first, you have to check. ๐ญ
fr fr, if you're not checking your device error codes you're doing it wrong bestie
โจ SEE ALSO โจ
- [
rtcNewGeometry] - [
rtcReleaseGeometry]
okay that's the whole page, she's a short one but she ate ๐๐
this little cutie comes from Embree Ray Tracing Kernels 3, and it signs off as rtcRetainGeometry(3) โ mwah, periodt ๐
โจ๐
๐ฆ where this page comes from
- epel 9: embree 3.13.5-4.el9 ยท Apache-2.0
- fedora 43: embree3 3.13.5-9.fc41 ยท Apache-2.0
- fedora 44: embree3 3.13.5-16.fc44 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms