Android Open Source - OpenGL-es3-android Debug






From Project

Back to project page OpenGL-es3-android.

License

The source code is released under:

GNU General Public License

If you think the Android project OpenGL-es3-android 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.opengles3.demo.tools;
/* ww w  .j a  v  a 2 s  . co m*/
import android.util.Log;

public class Debug {
  private final String TAG;
  
  
  
  public Debug(Object mainClass) {
    TAG = mainClass.getClass().getName();
  }
  
  public static Boolean debug=true;
  
  

  public static void debug(String text,Class mainClass){
    if(debug){
      Log.d(mainClass.getClass().getName(), text);
    }
  }
  public static void warning(String text,Class mainClass){
    if(debug){
      Log.w(mainClass.getClass().getName(), text);
    }
  }
  public static void verbose(String text,Class mainClass){
    if(debug){
      Log.v(mainClass.getClass().getName(), text);
    }
  }
  public static void error(String text,Class mainClass){
    if(debug){
      Log.e(mainClass.getClass().getName(), text);
    }
  }
}




Java Source Code List

com.opengles3.demo.GLRenderer.java
com.opengles3.demo.GLTextureView.java
com.opengles3.demo.MainActivity.java
com.opengles3.demo.geometry.ObjectBuilder.java
com.opengles3.demo.geometry.Shapes.java
com.opengles3.demo.geometry.VertexArray.java
com.opengles3.demo.objects.Mallet.java
com.opengles3.demo.objects.Puck.java
com.opengles3.demo.objects.Table.java
com.opengles3.demo.objects.TexturedTriangleFan.java
com.opengles3.demo.programs.ColorShaderProgram.java
com.opengles3.demo.programs.ShaderProgram.java
com.opengles3.demo.programs.TextureShaderProgram.java
com.opengles3.demo.tools.Debug.java
com.opengles3.demo.tools.Tools.java