public static void error(String msg, Throwable thrown) { Parallax.getInstance().getLogger().error(msg, thrown); } }
/** * Sets the {@link CSS3DAnimatedScene} to the widget. * @param animatedScene */ public void setAnimatedScene(CSS3DAnimatedScene animatedScene) { this.animatedScene = animatedScene; this.add(animatedScene.getRenderer()); // handlerManager.fireEvent(new SceneLoadingEvent()); }
public FirstPersonControls(Object3D object, RenderingContext context) { super(object, context); this.viewHalfX = context.getWidth() / 2; this.viewHalfY = context.getHeight() / 2; this.target = new Vector3(); context.getInput().addInputHandler( this ); }
public int getTextureUnit() { int textureUnit = this._usedTextureUnits ++; if ( textureUnit >= this._maxTextures ) { Log.debug("WebGlRenderer: Trying to use " + textureUnit + " texture units while this GPU supports only " + this._maxTextures); } return textureUnit; }
public static void debug(String msg) { Parallax.getInstance().getLogger().debug( msg); }
public static void warn(String msg) { Parallax.getInstance().getLogger().warn( msg); }
public static void info(String msg) { Parallax.getInstance().getLogger().info( msg); }
@Override public void execute() { setSize(CSS3DRenderingPanel.this.getOffsetWidth(), CSS3DRenderingPanel.this.getOffsetHeight()); } });
private static native void toFullScreen(Element element) /*-{ if(element.requestFullscreen) { element.requestFullscreen(); } else if(element.webkitRequestFullscreen) { element.webkitRequestFullscreen(); } else if(element.mozRequestFullscreen) { element.mozRequestFullScreen(); } var rect = element.getBoundingClientRect(); element.width = rect.width; element.height = rect.height; }-*/;
/** * Gets {@link CSS3DRenderer}. Use {@link CSS3DAnimatedScene#getRenderer()} instead. * * @return {@link CSS3DRenderer} */ public CSS3DRenderer getRenderer() { return animatedScene.getRenderer(); }
@Override public void execute() { onLoaded(); } });
@Override public void onUpdate(double duration) { if(!isSceneLoaded) { // handlerManager.fireEvent(new SceneLoadingEvent(true)); isSceneLoaded = true; } if(animationUpdateHandler != null) animationUpdateHandler.onUpdate(duration); } });
public static Parallax getInstance() { isInit(); return instance; }
public Widget getCanvas() { return animatedScene.getCanvas(); }
public static void error(String msg) { Parallax.getInstance().getLogger().error( msg); }
public static void error(Object ... all) { StringBuilder result = new StringBuilder(); for ( Object mods : all ) { result.append(mods + " "); } Parallax.getInstance().getLogger().error( result.toString()); }