From d7d9f2e82d1b9c4e2bba432b9c84731c7c620c85 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 14 Jun 2018 00:07:24 +0200 Subject: [PATCH] added the missing Shader.java --- .../main/java/com/android/texample/Shader.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hyperroid/app/src/main/java/com/android/texample/Shader.java 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); + } +}