| 87 | |
| 88 | //! Create an ispc-side QuadLight object |
| 89 | extern "C" void* QuadLight_create() |
| 90 | { |
| 91 | QuadLight* self = (QuadLight*) alignedUSMMalloc(sizeof(QuadLight),16); |
| 92 | |
| 93 | Light_Constructor(&self->super); |
| 94 | //self->super.sample = GET_FUNCTION_POINTER(QuadLight_sample); |
| 95 | self->super.type = LIGHT_QUAD; |
| 96 | |
| 97 | QuadLight_set(self, |
| 98 | Vec3fa(0.f), |
| 99 | Vec3fa(1.f, 0.f, 0.f), |
| 100 | Vec3fa(0.f, 1.f, 0.f), |
| 101 | Vec3fa(1.f)); |
| 102 | |
| 103 | return self; |
| 104 | } |
| 105 | |
| 106 | } // namespace embree |
nothing calls this directly
no test coverage detected