getMainCamera method
Returns the entity associated with the main camera.
Implementation
@override
Future<ThermionEntity> getMainCamera() async {
final entityId = _module.ccall(
"get_main_camera", "int", ["void*".toJS].toJS, [_viewer].toJS, null)
as JSNumber;
if (entityId.toDartInt == -1) {
throw Exception("Failed to get main camera");
}
return entityId.toDartInt;
}