IShaderData Class Referenceabstract

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...
 

Detailed Description

An interface for the underlying data of a shader.

Author
Benjamin Buergisser

Constructor & Destructor Documentation

virtual IShaderData::~IShaderData ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

virtual std::string IShaderData::getFragShaderSrc ( ) const
pure virtual

Gets the source code of the fragment shader as a string.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual GLuint IShaderData::getMaxLights ( ) const
pure virtual

Get the maximum number of lights.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual std::string IShaderData::getVertShaderSrc ( ) const
pure virtual

Gets the source code of the vertex shader as a string.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::isValid ( ) const
pure virtual

Returns true if the shader is valid.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::supportsAmbientLighting ( ) const
pure virtual

Returns true if the shader supports ambient lighting.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::supportsCubicReflectionMap ( ) const
pure virtual

Returns true if the shader supports a cubic reflection map.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::supportsDiffuseLighting ( ) const
pure virtual

Returns true if the shader supports diffuse lighting.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::supportsSpecularLighting ( ) const
pure virtual

Returns true if the shader supports specular lighting.

Implemented in ShaderDataGenerator, and ShaderDataFile.

virtual bool IShaderData::supportsVariableNumberOfLights ( ) const
pure virtual

Returns true if the number of lights is variable in the shader.

Implemented in ShaderDataGenerator, and ShaderDataFile.