diff --git a/hyperroid/app/src/main/java/com/android/texample/Shader.java b/hyperroid/app/src/main/java/com/android/texample/Shader.java new file mode 100644 index 00000000..41799a23 --- /dev/null +++ b/hyperroid/app/src/main/java/com/android/texample/Shader.java @@ -0,0 +1,15 @@ +// taken from Texample, +// http://fractiousg.blogspot.com/201/4/rendering-text-in-opengl-on-android.html + +package com.android.texample; + +import android.opengl.GLES20; + +public class Shader { + + public int aPosition, aTexture, uColor; + + void setColor(float red, float green, float blue, float alpha) { + GLES20.glUniform4f(uColor, red, green, blue, alpha); + } +}