Support Forum G3D Web Page |
Stores either a filename or a shader source string (that has not gone through the g3d preprocessor) for a single shader stage. More...
Public Member Functions | |
Source () | |
Source (SourceType t, const String &value) | |
Source (const String &sourceString) | |
Throws an error at runtime if the source string appears to be a filename instead of GLSL code. More... | |
Protected Attributes | |
SourceType | type |
String | val |
Friends | |
class | Shader |
Stores either a filename or a shader source string (that has not gone through the g3d preprocessor) for a single shader stage.
G3D::Shader::Source::Source | ( | ) |
G3D::Shader::Source::Source | ( | SourceType | t, |
const String & | value | ||
) |
G3D::Shader::Source::Source | ( | const String & | sourceString | ) |
Throws an error at runtime if the source string appears to be a filename instead of GLSL code.
|
friend |
|
protected |
|
protected |