Basic Renderer
|
An interface for the underlying data of a shader. More...
#include <IShaderData.h>
Inherited by ShaderDataFile, and ShaderDataGenerator.
Public Member Functions | |
virtual | ~IShaderData () |
Virtual destructor. More... | |
virtual std::string | getVertShaderSrc () const =0 |
Gets the source code of the vertex shader as a string. More... | |
virtual std::string | getFragShaderSrc () const =0 |
Gets the source code of the fragment shader as a string. More... | |
virtual GLuint | getMaxLights () const =0 |
Get the maximum number of lights. More... | |
virtual bool | supportsVariableNumberOfLights () const =0 |
Returns true if the number of lights is variable in the shader. More... | |
virtual bool | supportsAmbientLighting () const =0 |
Returns true if the shader supports ambient lighting. More... | |
virtual bool | supportsDiffuseLighting () const =0 |
Returns true if the shader supports diffuse lighting. More... | |
virtual bool | supportsSpecularLighting () const =0 |
Returns true if the shader supports specular lighting. More... | |
virtual bool | supportsCubicReflectionMap () const =0 |
Returns true if the shader supports a cubic reflection map. More... | |
virtual bool | isValid () const =0 |
Returns true if the shader is valid. More... | |
An interface for the underlying data of a shader.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Gets the source code of the fragment shader as a string.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Get the maximum number of lights.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Gets the source code of the vertex shader as a string.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the shader is valid.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the shader supports ambient lighting.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the shader supports a cubic reflection map.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the shader supports diffuse lighting.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the shader supports specular lighting.
Implemented in ShaderDataGenerator, and ShaderDataFile.
|
pure virtual |
Returns true if the number of lights is variable in the shader.
Implemented in ShaderDataGenerator, and ShaderDataFile.