TerraForge3D
2.3.1
3D Terrain And Landscape Generator
◆
GenerateGLSL()
std::string GLSLFunction::GenerateGLSL
(
)
Definition at line
134
of file
GLSLHandler.cpp
.
135
{
136
std::stringstream c;
137
138
if
(comment.size() > 0)
139
{
140
c << comment <<
"\n"
;
141
}
142
143
c << returnType <<
" "
<< name <<
"("
<< params <<
")"
<<
"\n"
;
144
c <<
"{\n"
;
145
146
for
(
GLSLLine
&line : lines)
147
{
148
c <<
"\t"
<< line.GenerateGLSL() <<
"\n"
;
149
}
150
151
c <<
"}"
;
152
return
c.str();
153
}
GLSLLine
Definition:
GLSLHandler.h:33
GLSLFunction
Generated on Thu Apr 7 2022 14:10:52 for TerraForge3D by
1.9.3