public class ProvideParser extends BasicStatementParser
@provide can only be used inside the main method of the vertex block.
It will generate the out statements and assign the value.
If there is now shader which is requesting the value, the statement will get stripped!| Modifier and Type | Class and Description |
|---|---|
static class |
ProvideParser.Groups |
BasicStatementParser.GroupProvider| Modifier and Type | Field and Description |
|---|---|
static Pattern |
REGEX
Capture Groups: (example: "@provide vec2 texCoord = vec4();")
- 0 statement (example: "vec2 texCoord = vec4();")
- 1 definition/declaration (example: "vec2 texCoord ")
- 2 type (example: "vec2")
- 3 name (example: "texCoord")
- 4 expression (example: " vec4()")
|
pattern, target| Constructor and Description |
|---|
ProvideParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMainLine(String input) |
String |
getName(String input) |
String |
getType(String input) |
getGroup, getGroup, getGroup, getGroup, getTargetMatcher, test, testpublic static final Pattern REGEX
Copyright © 2014. All rights reserved.