Android Open Source - model-explorer My G L E S20 Factory






From Project

Back to project page model-explorer.

License

The source code is released under:

Apache License

If you think the Android project model-explorer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.etaoin.myopengltest.util.gl;
//from www.  j av  a  2 s . c  om
/**
 * Factory for all the OpenGL ES 2.0 wrappers.
 */
public class MyGLES20Factory {

  public static final int DEBUG_LEVEL_NONE = 0;
  public static final int DEBUG_LEVEL_BASIC = 1; // TODO Do if needed
  public static final int DEBUG_LEVEL_ALL = 2;

  public MyGLES20 createGLES20(int type) {
    MyGLES20 gles20;

    switch (type) {
      case DEBUG_LEVEL_NONE:
        gles20 = new MyGLES20DebugNone();
        break;
      case DEBUG_LEVEL_ALL:
        gles20 = new MyGLES20DebugAll();
        break;
      default:
        throw new UnkownGLES20TypeRuntimeException(type);
    }

    return gles20;
  }

  public static class UnkownGLES20TypeRuntimeException extends RuntimeException {

    public UnkownGLES20TypeRuntimeException(int type) {
      super("Unknown MyGLES20 type: " + type);
    }
  }
}




Java Source Code List

com.etaoin.myopengltest.core.main.activity.MainGLActivity.java
com.etaoin.myopengltest.core.main.context.ContextManager.java
com.etaoin.myopengltest.core.main.context.Context.java
com.etaoin.myopengltest.core.main.context.GameContext.java
com.etaoin.myopengltest.core.main.events.UserEvent.java
com.etaoin.myopengltest.core.main.renderers.MainGLRenderer.java
com.etaoin.myopengltest.core.main.views.MainGLSurfaceView.java
com.etaoin.myopengltest.util.camera.Camera.java
com.etaoin.myopengltest.util.geometry.Face.java
com.etaoin.myopengltest.util.geometry.TriangleList.java
com.etaoin.myopengltest.util.geometry.Vector3List.java
com.etaoin.myopengltest.util.geometry.Vector3.java
com.etaoin.myopengltest.util.gl.MyGLES20DebugAll.java
com.etaoin.myopengltest.util.gl.MyGLES20DebugNone.java
com.etaoin.myopengltest.util.gl.MyGLES20Factory.java
com.etaoin.myopengltest.util.gl.MyGLES20.java
com.etaoin.myopengltest.util.gl.MyGenericGLES20.java
com.etaoin.myopengltest.util.io.FileReader.java
com.etaoin.myopengltest.util.io.ModelParserFactory.java
com.etaoin.myopengltest.util.io.ModelParser.java
com.etaoin.myopengltest.util.io.obj.ObjParser.java
com.etaoin.myopengltest.util.light.PointLight.java
com.etaoin.myopengltest.util.shaders.SampleFragmentShader.java
com.etaoin.myopengltest.util.shaders.SampleVertexShader.java
com.etaoin.myopengltest.util.shaders.ShaderFactory.java
com.etaoin.myopengltest.util.shaders.Shader.java
com.etaoin.myopengltest.util.shapes.Axis.java
com.etaoin.myopengltest.util.shapes.Background.java
com.etaoin.myopengltest.util.shapes.Drawable.java
com.etaoin.myopengltest.util.shapes.Model.java