public class MrShader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SHADERTYPE_FRAGMENT_SHADER |
static int |
SHADERTYPE_VERTEX_SHADER |
Constructor and Description |
---|
MrShader(int shaderType,
java.lang.String source) |
Modifier and Type | Method and Description |
---|---|
static MrShader |
genFragmentShader(java.lang.String source) |
static MrShader |
genVertexShader(java.lang.String source) |
int |
getId() |
int |
getShaderType() |
java.lang.String |
getSource() |
void |
setId(int id) |
public static final int SHADERTYPE_VERTEX_SHADER
public static final int SHADERTYPE_FRAGMENT_SHADER
public static MrShader genFragmentShader(java.lang.String source)
public static MrShader genVertexShader(java.lang.String source)
public int getShaderType()
public int getId()
public void setId(int id)
public java.lang.String getSource()