DOKK / manpages / debian 12 / libembree-dev / rtcNewScene.3.en
rtcNewScene(3) Embree Ray Tracing Kernels 3 rtcNewScene(3)

rtcNewScene - creates a new scene
    

#include <embree3/rtcore.h>
RTCScene rtcNewScene(RTCDevice device);
    

This function creates a new scene bound to the specified device (device 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 rtcReleaseScene API call.

On success a scene handle is returned. On failure NULL is returned and an error code is set that can be queried using rtcGetDeviceError.

[rtcRetainScene], [rtcReleaseScene]