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

RTCScene rtcNewScene(RTCDevice device);
\f[R]
.fi
.SS DESCRIPTION
.PP
This function creates a new scene bound to the specified device
(\f[C]device\f[R] argument), and returns a handle to this scene.
The scene object is reference counted with an initial reference count of
1.
The scene handle can be released using the \f[C]rtcReleaseScene\f[R] API
call.
.SS EXIT STATUS
.PP
On success a scene handle is returned.
On failure \f[C]NULL\f[R] is returned and an error code is set that can
be queried using \f[C]rtcGetDeviceError\f[R].
.SS SEE ALSO
.PP
[rtcRetainScene], [rtcReleaseScene]
