12#ifndef IGL_EMBREE_EMBREE_DEVICE_H 
   13#define IGL_EMBREE_EMBREE_DEVICE_H 
   14#include <embree3/rtcore.h> 
   56        RTCDevice get(
const char *config=
nullptr) 
 
   62                    std::cerr << 
"Embree: An error occurred while initializing embree core!" << std::endl;
 
   65                    std::cerr << 
"Embree: core initialized." << std::endl;
 
   78                    std::cerr << 
"Embree: core released." << std::endl;
 
 
keep track of embree device instance
Definition EmbreeDevice.h:23
 
EmbreeDevice & operator=(const EmbreeDevice &)=delete
 
int embree_device_cntr
Definition EmbreeDevice.h:25
 
RTCDevice embree_device
Definition EmbreeDevice.h:24
 
static void release_device(void)
Definition EmbreeDevice.h:41
 
static EmbreeDevice & instance()
Definition EmbreeDevice.h:27
 
static RTCDevice get_device(const char *config=nullptr)
Definition EmbreeDevice.h:36
 
EmbreeDevice(const EmbreeDevice &)=delete