Support Forum       G3D Web Page     
Public Member Functions | Protected Attributes | Friends | List of all members
G3D::Shader::Source Class Reference

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
 

Detailed Description

Stores either a filename or a shader source string (that has not gone through the g3d preprocessor) for a single shader stage.

Constructor & Destructor Documentation

◆ Source() [1/3]

G3D::Shader::Source::Source ( )

◆ Source() [2/3]

G3D::Shader::Source::Source ( SourceType  t,
const String value 
)

◆ Source() [3/3]

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.

Friends And Related Function Documentation

◆ Shader

friend class Shader
friend

Member Data Documentation

◆ type

SourceType G3D::Shader::Source::type
protected

◆ val

String G3D::Shader::Source::val
protected

documentation generated on Wed Nov 24 2021 08:02:00 using doxygen 1.8.15