A class that contains the source code for a shader.
More...
#include <omGraphicsShaderSource.h>
A class that contains the source code for a shader.
In addition to a string specifying the source code for the shader, a ShaderSource object also contains a ShaderType object specifying the type of shader the source code describes.
om::graphics::materials::ShaderSource::ShaderSource |
( |
| ) |
|
Create a new shader source with an undefined shader type and no source code.
om::graphics::materials::ShaderSource::ShaderSource |
( |
ShaderType |
newShaderType | ) |
|
Create a new shader source with the specified shader type and no source code.
Create a new shader source with the specified shader type and source code.
const ShaderType& om::graphics::materials::ShaderSource::getType |
( |
| ) |
const |
|
inline |
Return an object describing the type of shader this source code describes.
void om::graphics::materials::ShaderSource::setType |
( |
const ShaderType & |
newType | ) |
|
|
inline |
Set an object describing the type of shader this source code describes.
const ShaderLanguage& om::graphics::materials::ShaderSource::getLanguage |
( |
| ) |
const |
|
inline |
Return an object describing the language in which this shader's source code is written.
void om::graphics::materials::ShaderSource::setLanguage |
( |
const ShaderLanguage & |
newLanguage | ) |
|
|
inline |
Set an object describing the language in which this shader's source code is written.
Return a string containing the source code for this shader.
void om::graphics::materials::ShaderSource::setSource |
( |
const ShaderSourceString & |
newSource | ) |
|
Set a string containing the source code for this shader.
const ResourceType om::graphics::materials::ShaderSource::RESOURCE_TYPE |
|
static |
The documentation for this class was generated from the following file: