mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
added the missing Shader.java
This commit is contained in:
parent
1eaaac4d77
commit
d7d9f2e82d
15
hyperroid/app/src/main/java/com/android/texample/Shader.java
Normal file
15
hyperroid/app/src/main/java/com/android/texample/Shader.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user