com.bugvm.apple.scenekit.SCNRenderer Maven / Gradle / Ivy
/*
* 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.*;
/* */
/**/
/**
* @since Available in iOS 8.0 and later.
*/
/* */
/**/@Library("SceneKit") @NativeClass/* */
/**/public/* */ class /**/SCNRenderer/* */
extends /**/NSObject/* */
/**/implements SCNSceneRenderer, SCNTechniqueSupport/* */ {
/**/public static class SCNRendererPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(SCNRenderer.class); }/* */
/**//* */
/**/
public SCNRenderer() {}
protected SCNRenderer(SkipInit skipInit) { super(skipInit); }
/* */
/**/
@Property(selector = "scene")
public native SCNScene getScene();
@Property(selector = "setScene:")
public native void setScene(SCNScene v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "nextFrameTime")
public native double getNextFrameTime();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "sceneTime")
public native double getSceneTime();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setSceneTime:")
public native void setSceneTime(double v);
@Property(selector = "delegate")
public native SCNSceneRendererDelegate getDelegate();
@Property(selector = "setDelegate:", strongRef = true)
public native void setDelegate(SCNSceneRendererDelegate v);
@Property(selector = "isPlaying")
public native boolean isPlaying();
@Property(selector = "setPlaying:")
public native void setPlaying(boolean v);
@Property(selector = "loops")
public native boolean loops();
@Property(selector = "setLoops:")
public native void setLoops(boolean v);
@Property(selector = "pointOfView")
public native SCNNode getPointOfView();
@Property(selector = "setPointOfView:")
public native void setPointOfView(SCNNode v);
@Property(selector = "autoenablesDefaultLighting")
public native boolean autoenablesDefaultLighting();
@Property(selector = "setAutoenablesDefaultLighting:")
public native void setAutoenablesDefaultLighting(boolean v);
@Property(selector = "isJitteringEnabled")
public native boolean isJitteringEnabled();
@Property(selector = "setJitteringEnabled:")
public native void setJitteringEnabled(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "showsStatistics")
public native boolean showsStatistics();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShowsStatistics:")
public native void setShowsStatistics(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@WeaklyLinked
@Property(selector = "overlaySKScene")
public native SKScene getOverlaySKScene();
/**
* @since Available in iOS 8.0 and later.
*/
@WeaklyLinked
@Property(selector = "setOverlaySKScene:")
public native void setOverlaySKScene(SKScene v);
@WeaklyLinked
@Property(selector = "context")
public native EAGLContext getContext();
@Property(selector = "technique")
public native SCNTechnique getTechnique();
@Property(selector = "setTechnique:")
public native void setTechnique(SCNTechnique v);
/* */
/**//* */
/**/
@Method(selector = "render")
public native void render();
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "renderAtTime:")
public native void renderAtTime(double time);
@Method(selector = "rendererWithContext:options:")
public static native SCNRenderer create(EAGLContext context, NSDictionary options);
@Method(selector = "hitTest:options:")
public native NSArray hitTest(@ByVal CGPoint thePoint, SCNHitTestOptions options);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "isNodeInsideFrustum:withPointOfView:")
public native boolean isNodeInsideFrustum(SCNNode node, SCNNode pointOfView);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "projectPoint:")
public native @ByVal SCNVector3 projectPoint(@ByVal SCNVector3 point);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "unprojectPoint:")
public native @ByVal SCNVector3 unprojectPoint(@ByVal SCNVector3 point);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "prepareObject:shouldAbortBlock:")
public native boolean prepareObject(NSObject object, @Block Block0 block);
/**
* @since Available in iOS 8.0 and later.
*/
@Method(selector = "prepareObjects:withCompletionHandler:")
public native void prepareObjects(NSArray> objects, @Block VoidBooleanBlock completionHandler);
/* */
}