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






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 ww w .j a  va2  s .com
import java.nio.Buffer;
import java.nio.FloatBuffer;

/**
 * Wrapper for all the OpenGL ES 2.0 calls.
 */
public interface MyGLES20 {

  public void glAttachShader(int program, int shader);
  public void glClear(int mask);
  public void glClearColor(float red, float green, float blue, float alpha);
  public void glCompileShader(int shader);
  public int glCreateProgram();
  public int glCreateShader(int type);
  public void glDrawElements(int mode, int count, int type, Buffer indices);
  public void glDrawElements(int mode, int count, int type, int offset);
  public void glEnableVertexAttribArray(int index);
  public int glGetAttribLocation(int program, String name);
  public int glGetUniformLocation(int program, String name);
  public void glLinkProgram(int program);
  public void glShaderSource(int shader, String source);
  public void glUniform3fv(int location, int count, FloatBuffer v);
  public void glUniform3fv(int location, int count, float[] value, int offset);
  public void glUniform4fv(int location, int count, FloatBuffer v);
  public void glUniform4fv(int location, int count, float[] value, int offset);
  public void glUniformMatrix4fv(int location, int count, boolean transpose, FloatBuffer value);
  public void glUniformMatrix4fv(int location, int count, boolean transpose, float[] value, int offset);
  public void glUseProgram(int program);
  public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, Buffer ptr);
  public void glVertexAttribPointer(int index, int size, int type, boolean normalized, int stride, int offset);
  public void glViewport(int x, int y, int width, int height);

  public int loadShader(int type, String shaderCode);

}




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