TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ GenerateGLSL()

std::string GLSLUniform::GenerateGLSL ( )

Definition at line 24 of file GLSLHandler.cpp.

25{
26 std::stringstream c;
27 c << "uniform " << type << " " << name;
28
29 if(value.size() > 0)
30 {
31 c << " = " << value;
32 }
33
34 c << ";";
35
36 if(comment.size() > 0)
37 {
38 c << " // " << comment;
39 }
40
41 return c.str();
42}