Class GlslFunctionNode
java.lang.Object
foundry.veil.impl.glsl.node.function.GlslFunctionNode
- All Implemented Interfaces:
GlslNode
Defines a function in a GLSL file with an optional body.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()voidSets the body of this function ornullto make this a function prototype.voidsetBody(@Nullable Collection<GlslNode> body) Sets the body of this function ornullto make this a function prototype.voidsetHeader(GlslFunctionHeader header) Sets the function header of this function to the specified value.toString()voidvisit(GlslFunctionVisitor visitor)
-
Constructor Details
-
GlslFunctionNode
-
-
Method Details
-
visit
-
getHeader
- Returns:
- The full signature of this function
-
getBody
- Returns:
- The body of the function or
nullif this is just a function prototype
-
setHeader
Sets the function header of this function to the specified value.- Parameters:
header- The new header
-
setBody
Sets the body of this function ornullto make this a function prototype.- Parameters:
body- The new function body
-
setBody
Sets the body of this function ornullto make this a function prototype.- Parameters:
body- The new function body
-
getSourceString
- Specified by:
getSourceStringin interfaceGlslNode
-
toString
-