1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

added the missing Shader.java

This commit is contained in:
Zeno Rogue 2018-06-14 00:07:24 +02:00
parent 1eaaac4d77
commit d7d9f2e82d

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