@MarshalsPointer public static long toNative(SCNLightingModel o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); }
@MarshalsPointer public static long toNative(SCNSceneAttribute o, long flags) { if (o == null) { return 0L; } return NSObject.Marshaler.toNative(o.value(), flags); }
@MarshalsPointer public static SCNLightingModel toObject(Class<SCNLightingModel> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return SCNLightingModel.valueOf(o); }
@MarshalsPointer public static SCNSceneAttribute toObject( Class<SCNSceneAttribute> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return SCNSceneAttribute.valueOf(o); }
@MarshalsPointer public static long toNative(List<SCNLightingModel> l, long flags) { if (l == null) { return 0L; } NSArray<NSString> array = new NSMutableArray<>(); for (SCNLightingModel o : l) { array.add(o.value()); } return NSObject.Marshaler.toNative(array, flags); }
@MarshalsPointer public static long toNative(List<SCNMatrix4> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSValue> array = new NSMutableArray<>(); for (SCNMatrix4 i : l) { array.add(NSValue.valueOf(i)); } return NSObject.Marshaler.toNative(array, flags); }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<SCNLightingModel> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<SCNLightingModel> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SCNLightingModel.valueOf(o.get(i))); } return list; }
@SuppressWarnings("unchecked") @MarshalsPointer public static List<SCNMatrix4> toObject( Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSValue> o = (NSArray<NSValue>) NSObject.Marshaler.toObject(cls, handle, flags); if (o == null) { return null; } List<SCNMatrix4> list = new ArrayList<>(); for (NSValue val : o) { list.add(val.SCNMatrix4Value()); } return list; }