public class DwGLSLShader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DwGLSLShader.GLSLDefine |
Modifier and Type | Field and Description |
---|---|
String[] |
content |
DwPixelFlow |
context |
boolean |
flag_rebuild |
GL2ES2 |
gl |
HashMap<String,DwGLSLShader.GLSLDefine> |
glsl_defines |
int |
HANDLE |
String |
path |
int |
type |
String |
type_str |
Constructor and Description |
---|
DwGLSLShader(DwPixelFlow context,
int type,
String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
build() |
DwGLSLShader.GLSLDefine |
getDefine(String name) |
static void |
getShaderInfoLog(GL2ES2 gl,
int shader_id,
String info) |
static void |
getShaderSource(GL2ES2 gl,
int shader_id) |
void |
loadSource(int depth,
ArrayList<String> source,
File file) |
String[] |
loadSource(String path) |
void |
parseDefines(String[] content) |
void |
printCompiledShader() |
void |
printDefines() |
void |
printShader() |
void |
release() |
void |
setDefine(String name,
float value) |
void |
setDefine(String name,
int value) |
void |
setDefine(String name,
String value) |
public DwPixelFlow context
public GL2ES2 gl
public int type
public int HANDLE
public String type_str
public String path
public String[] content
public HashMap<String,DwGLSLShader.GLSLDefine> glsl_defines
public boolean flag_rebuild
public DwGLSLShader(DwPixelFlow context, int type, String path)
public DwGLSLShader.GLSLDefine getDefine(String name)
public void setDefine(String name, int value)
public void setDefine(String name, float value)
public void parseDefines(String[] content)
public void printDefines()
public void release()
public boolean build()
public void printShader()
public void printCompiledShader()
public static void getShaderInfoLog(GL2ES2 gl, int shader_id, String info)
public static void getShaderSource(GL2ES2 gl, int shader_id)
Processing library PixelFlow by Thomas Diewald. (c) 2017