added the missing Shader.java

This commit is contained in:
Zeno Rogue 2018-06-14 00:07:24 +02:00
parent 1eaaac4d77
commit d7d9f2e82d
1 changed files with 15 additions and 0 deletions

View File

@ -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);
}
}