12#ifndef IGL_EMBREE_EMBREE_DEVICE_H
13#define IGL_EMBREE_EMBREE_DEVICE_H
14#include <embree4/rtcore.h>
58 RTCDevice get(
const char *config=
nullptr)
65 assert(
false &&
"Embree: An error occurred while initializing embree core!");
67 std::cerr <<
"Embree: An error occurred while initializing embree core!" << std::endl;
71 std::cerr <<
"Embree: core initialized." << std::endl;
85 std::cerr <<
"Embree: core released." << std::endl;
Definition ambient_occlusion.h:15
EmbreeDevice & operator=(const EmbreeDevice &)=delete
int embree_device_cntr
Definition EmbreeDevice.h:27
RTCDevice embree_device
Definition EmbreeDevice.h:26
static void release_device(void)
Definition EmbreeDevice.h:43
static EmbreeDevice & instance()
Definition EmbreeDevice.h:29
static RTCDevice get_device(const char *config=nullptr)
Definition EmbreeDevice.h:38
EmbreeDevice(const EmbreeDevice &)=delete