Back to project page jmini3d.
The source code is released under:
Copyright 2012 Mobialia http://www.mobialia.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
If you think the Android project jmini3d listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package jmini3d.gwt; // w w w . j a v a2s . c om import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Element; import com.google.gwt.event.logical.shared.ResizeEvent; import com.google.gwt.event.logical.shared.ResizeHandler; import com.google.gwt.user.client.Window; public class EntryPoint3d implements EntryPoint { public Canvas3d canvas3d; public String resourceDir = "./"; public void onModuleLoad() { canvas3d = new Canvas3d(resourceDir); canvas3d.setScale(canvas3d.getDevicePixelRatio()); canvas3d.setSize(Window.getClientWidth(), Window.getClientHeight()); Window.addResizeHandler(new ResizeHandler() { public void onResize(ResizeEvent event) { canvas3d.setSize(event.getWidth(), event.getHeight()); } }); onCreateSetContentView(); canvas3d.onResume(); } protected void onCreateSetContentView() { appendToBody(canvas3d.getElement()); } public static native void appendToBody(Element element) /*-{ $doc.body.appendChild(element); }-*/; }