Back to project page min3d.
The source code is released under:
MIT License
If you think the Android project min3d 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 com.min3d; //from ww w . ja v a 2 s . c om import com.min3d.lib.core.Object3dContainer; import com.min3d.lib.core.RendererActivity; import com.min3d.lib.objectPrimitives.Sphere; import com.min3d.lib.vos.RenderType; /** * @author Lee */ public class ExampleRenderType extends RendererActivity { Object3dContainer _object; int _count; public void initScene() { _object = new Sphere(1f, 15, 10); _object.normalsEnabled(false); // .. allows vertex colors to show through scene.addChild(_object); // ( btw, notice how the Scene contains no Lights) _count = 0; } @Override public void updateScene() { if (_count % 300 == 0) { _object.renderType(RenderType.TRIANGLES); } else if (_count % 300 == 100) { _object.renderType(RenderType.POINTS); _object.pointSize(1f); } else if (_count % 300 == 200) { _object.renderType(RenderType.LINES); _object.lineWidth(1.0f); } _object.pointSize( _object.pointSize()+0.12f ); _object.lineWidth( _object.lineWidth()+0.12f ); _object.rotation().y +=1; _object.rotation().z += 0.2f; _count++; } }