.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "rtcReleaseScene" "3" "" "" "Embree Ray Tracing Kernels 4"
.hy
.SS NAME
.IP
.nf
\f[C]
rtcReleaseScene - decrements the scene reference count
\f[R]
.fi
.SS SYNOPSIS
.IP
.nf
\f[C]
#include <embree4/rtcore.h>

void rtcReleaseScene(RTCScene scene);
\f[R]
.fi
.SS DESCRIPTION
.PP
Scene objects are reference counted.
The \f[C]rtcReleaseScene\f[R] function decrements the reference count of
the passed scene object (\f[C]scene\f[R] argument).
When the reference count falls to 0, the scene gets destroyed.
.PP
The scene holds a reference to all attached geometries, thus if the
scene gets destroyed, all geometries get detached and their reference
count decremented.
.SS EXIT STATUS
.PP
On failure an error code is set that can be queried using
\f[C]rtcGetDeviceError\f[R].
.SS SEE ALSO
.PP
[rtcNewScene], [rtcRetainScene]
