dispose method
Calls all registered onDispose callbacks and clears them.
Implementation
@override
void dispose() {
super.dispose();
_lights.forEach(calloc.free);
calloc.free(_lightInt8ValuePtr);
calloc.free(_lightFloat3ValuePtr);
calloc.free(_lightFloat4ValuePtr);
}