rtcRetainScene(3) Embree Ray Tracing Kernels 4 rtcRetainScene(3)

rtcRetainScene - increments the scene reference count

#include <embree4/rtcore.h>
void rtcRetainScene(RTCScene scene);

Scene objects are reference counted. The rtcRetainScene function increments the reference count of the passed scene object (scene argument). This function together with rtcReleaseScene allows to use the internal reference counting in a C++ wrapper class to handle the ownership of the object.

On failure an error code is set that can be queried using rtcGetDeviceError.

[rtcNewScene], [rtcReleaseScene]