added the missing Shader.java
This commit is contained in:
parent
1eaaac4d77
commit
d7d9f2e82d
|
@ -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