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
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
void
Sets the body of this function ornull
to make this a function prototype.void
setBody
(@Nullable Collection<GlslNode> body) Sets the body of this function ornull
to make this a function prototype.void
setHeader
(GlslFunctionHeader header) Sets the function header of this function to the specified value.stream()
toString()
void
visit
(GlslFunctionVisitor visitor)
-
Constructor Details
-
GlslFunctionNode
-
-
Method Details
-
visit
-
getHeader
- Returns:
- The full signature of this function
-
getBody
- Returns:
- The body of the function or
null
if 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 ornull
to make this a function prototype.- Parameters:
body
- The new function body
-
setBody
Sets the body of this function ornull
to make this a function prototype.- Parameters:
body
- The new function body
-
getSourceString
- Specified by:
getSourceString
in interfaceGlslNode
-
stream
-
toString
-