| Package | Description |
|---|---|
| org.achtern.AchternEngine.core.resource.fileparser | |
| org.achtern.AchternEngine.core.resource.fileparser.caseclasses |
| Modifier and Type | Method and Description |
|---|---|
protected static List<Variable> |
GLSLParser.filterPrimitives(List<Variable> variables)
Just iterates over the list and adds primitves to a new list
|
List<Variable> |
GLSLParser.getAttributes(String text)
Just a wrapper for getVariables(text, TOKEN_ATTRIBUTE);
|
static List<Variable> |
GLSLParser.getVariables(String text,
String token)
Scans through the shader source and extracts variables which
are "flagged" with a specific token.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
GLSLParser.expandUniform(Variable uniform,
GLSLStruct main,
List<GLSLStruct> structs)
Expand a uniform
If a uniform's type is a custom struct, OpenGL
expects you to expand it.
|
static List<String> |
GLSLParser.expendVariable(Variable variable,
GLSLStruct main,
List<GLSLStruct> structs)
Expand a variable
If a uniform's type is a custom struct, OpenGL
expects you to expand it.
|
protected static boolean |
GLSLParser.isPrimitive(Variable v)
Check if the given variable is primitiv.
|
| Modifier and Type | Method and Description |
|---|---|
protected static List<Variable> |
GLSLParser.filterPrimitives(List<Variable> variables)
Just iterates over the list and adds primitves to a new list
|
List<Uniform> |
GLSLParser.getExpandedUniforms(String text,
List<Variable> uniforms,
List<GLSLStruct> structs)
Expands all uniforms for adding to the shader programm
|
protected List<String> |
VariableBasedLanguageParser.getNames(List<Variable> vars) |
protected List<String> |
VariableBasedLanguageParser.getTypes(List<Variable> vars) |
| Modifier and Type | Class and Description |
|---|---|
class |
Uniform |
| Modifier and Type | Field and Description |
|---|---|
protected List<Variable> |
GLSLScript.attributes |
protected List<Variable> |
GLSLStruct.members |
| Modifier and Type | Method and Description |
|---|---|
void |
GLSLStruct.addMember(Variable variable) |
| Modifier and Type | Method and Description |
|---|---|
void |
GLSLScript.setUniformsFromVariable(List<Variable> uniforms) |
| Constructor and Description |
|---|
Uniform(Variable from) |
Copyright © 2014. All rights reserved.