TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ GenerateGLSL()

std::string GLSLMacro::GenerateGLSL ( )

Definition at line 53 of file GLSLHandler.cpp.

54{
55 std::stringstream c;
56
57 if(comment.size() > 0)
58 {
59 c << "// " << comment << "\n";
60 }
61
62 c << "#define " << name << " " << value;
63 return c.str();
64}