MCPcopy Create free account
hub / github.com/RenderKit/embree / eagerCreate

Function eagerCreate

tutorials/lazy_geometry/lazy_geometry_device.cpp:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void eagerCreate(LazyGeometry* instance)
147{
148 //printf("creating sphere %i (eager)\n",instance->userID);
149 instance->object = rtcNewScene(g_device);
150 createTriangulatedSphere(instance->object,instance->center,instance->radius);
151 rtcCommitScene(instance->object);
152 instance->state = LAZY_VALID;
153}
154
155void instanceIntersectFuncN(const RTCIntersectFunctionNArguments* args)
156{

Callers 1

createLazyObjectFunction · 0.85

Calls 3

rtcNewSceneFunction · 0.85
rtcCommitSceneFunction · 0.85
createTriangulatedSphereFunction · 0.70

Tested by

no test coverage detected