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

Function PointLight_create

tutorials/common/lights/point_light.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121//! Create an ispc-side PointLight object
122extern "C" void* PointLight_create()
123{
124 PointLight* self = (PointLight*) alignedUSMMalloc(sizeof(PointLight),16);
125 Light_Constructor(&self->super);
126 //self->super.sample = GET_FUNCTION_POINTER(PointLight_sample);
127 //self->super.eval = GET_FUNCTION_POINTER(PointLight_eval);
128 self->super.type = LIGHT_POINT;
129
130 PointLight_set(self, Vec3fa(0.f), Vec3fa(1.f), 0.f);
131 return self;
132}
133
134} // namespace embree

Callers 1

createLightMethod · 0.85

Calls 4

alignedUSMMallocFunction · 0.85
Light_ConstructorFunction · 0.85
PointLight_setFunction · 0.85
Vec3faClass · 0.50

Tested by

no test coverage detected