Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bugvm.apple.scenekit;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.coreanimation.*;
import com.bugvm.apple.dispatch.*;
import com.bugvm.apple.glkit.*;
import com.bugvm.apple.spritekit.*;
import com.bugvm.apple.opengles.*;
/**/
/**/
/**/
/**/@Library("SceneKit") @StronglyLinked/**/
@Marshaler(/**/SCNRenderingTransform/**/.Marshaler.class)
/**/public/**/ class /**/SCNRenderingTransform/**/
extends /**/SCNProgramSemantic/**/
/**//**/ {
static { Bro.bind(/**/SCNRenderingTransform/**/.class); }
/**/
public static class Marshaler {
@MarshalsPointer
public static SCNRenderingTransform toObject(Class cls, long handle, long flags) {
NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
if (o == null) {
return null;
}
return SCNRenderingTransform.valueOf(o);
}
@MarshalsPointer
public static long toNative(SCNRenderingTransform o, long flags) {
if (o == null) {
return 0L;
}
return NSObject.Marshaler.toNative(o.value(), flags);
}
}
public static class AsListMarshaler {
@SuppressWarnings("unchecked")
@MarshalsPointer
public static List toObject(Class extends NSObject> cls, long handle, long flags) {
NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
if (o == null) {
return null;
}
List list = new ArrayList<>();
for (int i = 0; i < o.size(); i++) {
list.add(SCNRenderingTransform.valueOf(o.get(i)));
}
return list;
}
@MarshalsPointer
public static long toNative(List l, long flags) {
if (l == null) {
return 0L;
}
NSArray array = new NSMutableArray<>();
for (SCNRenderingTransform o : l) {
array.add(o.value());
}
return NSObject.Marshaler.toNative(array, flags);
}
}
/**/
public static class AsTransform3DMapMarshaler {
@SuppressWarnings("unchecked")
@MarshalsPointer
public static Map toObject(Class extends NSObject> cls, long handle, long flags) {
NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags);
if (o == null) {
return null;
}
Map map = new HashMap<>();
for (Map.Entry e : o.entrySet()) {
map.put(SCNRenderingTransform.valueOf(e.getKey()), e.getValue().transform3DValue());
}
return map;
}
@MarshalsPointer
public static long toNative(Map o, long flags) {
if (o == null) {
return 0L;
}
NSDictionary dict = new NSMutableDictionary<>();
for (Map.Entry e : o.entrySet()) {
dict.put(e.getKey().value(), NSValue.valueOf(e.getValue()));
}
return NSObject.Marshaler.toNative(dict, flags);
}
}
/**/
public static final SCNRenderingTransform Model = new SCNRenderingTransform("Model");
public static final SCNRenderingTransform View = new SCNRenderingTransform("View");
public static final SCNRenderingTransform Projection = new SCNRenderingTransform("Projection");
public static final SCNRenderingTransform Normal = new SCNRenderingTransform("Normal");
public static final SCNRenderingTransform ModelView = new SCNRenderingTransform("ModelView");
public static final SCNRenderingTransform ModelViewProjection = new SCNRenderingTransform("ModelViewProjection");
/**/
private static /**/SCNRenderingTransform/**/[] values = new /**/SCNRenderingTransform/**/[] {/**/Model, View, Projection, Normal, ModelView, ModelViewProjection/**/};
/**/SCNRenderingTransform/**/ (String getterName) {
super(Values.class, getterName);
}
public static /**/SCNRenderingTransform/**/ valueOf(/**/NSString/**/ value) {
for (/**/SCNRenderingTransform/**/ v : values) {
if (v.value().equals(value)) {
return v;
}
}
throw new IllegalArgumentException("No constant with value " + value + " found in "
+ /**/SCNRenderingTransform/**/.class.getName());
}
/**//**/
/**/@Library("SceneKit") @StronglyLinked/**/
public static class Values {
static { Bro.bind(Values.class); }
/**/
@GlobalValue(symbol="SCNModelTransform", optional=true)
public static native NSString Model();
@GlobalValue(symbol="SCNViewTransform", optional=true)
public static native NSString View();
@GlobalValue(symbol="SCNProjectionTransform", optional=true)
public static native NSString Projection();
@GlobalValue(symbol="SCNNormalTransform", optional=true)
public static native NSString Normal();
@GlobalValue(symbol="SCNModelViewTransform", optional=true)
public static native NSString ModelView();
@GlobalValue(symbol="SCNModelViewProjectionTransform", optional=true)
public static native NSString ModelViewProjection();
/**/
}
}