Radium Engine  1.5.0
Ra::Engine::Data::ShaderParameterProvider Class Referenceabstract

#include <Engine/Data/RenderParameters.hpp>

+ Inheritance diagram for Ra::Engine::Data::ShaderParameterProvider:
+ Collaboration diagram for Ra::Engine::Data::ShaderParameterProvider:

Public Member Functions

virtual RenderParametersgetParameters ()
 
virtual const RenderParametersgetParameters () const
 
virtual void updateGL ()=0
 Update the OpenGL states used by the ShaderParameterProvider. These state could be the ones from an associated material (textures, precomputed tables or whatever data associated to the material) or some parameters that are specific to the provider semantic.
 
virtual void updateFromParameters ()
 Update the attributes of the ShaderParameterProvider to their actual values stored in the renderParameters.
 
virtual std::list< std::string > getPropertyList () const
 Get the list of properties the provider might use in a shader. Each property will be added to the shader used for rendering under the form "#define theProperty" when the provider is associated with the render technique. More...
 

Detailed Description

Shader program parameter provider. a ShaderParameterProvider is an object that is associated to a render technique to provide the uniform parameter set for the program. When an RenderObject is drawn using a given rendertechnique, the ShaderParameterProvider associated to the renderTechnique is responsible to set all the uniforms needed by the rendertechnique.

Definition at line 368 of file RenderParameters.hpp.

Member Function Documentation

◆ getPropertyList()

virtual std::list<std::string> Ra::Engine::Data::ShaderParameterProvider::getPropertyList ( ) const
inlinevirtual

Get the list of properties the provider might use in a shader. Each property will be added to the shader used for rendering under the form "#define theProperty" when the provider is associated with the render technique.

The default implementation returns an empty list.

Todo:
: Validate this proposal

Reimplemented in Ra::Engine::Data::Material.

Definition at line 397 of file RenderParameters.hpp.


The documentation for this class was generated from the following file: