Gazebo Rendering

API Reference

9.0.0
ShaderParams Class Reference

a map that holds params to be passed to a shader More...

#include <ShaderParams.hh>

Public Member Functions

 ShaderParams ()
 constructor
 
 ~ShaderParams ()
 destructor
 
Iterator begin () const
 Iterator to first parameter.
 
void ClearDirty ()
 Resets the dirty flag.
 
Iterator end () const
 Iterator to one past last param.
 
bool IsDirty () const
 Have the params changed?
 
ShaderParamoperator[] (const std::string &_name)
 Access a param with a given name.
 
const ShaderParamoperator[] (const std::string &_name) const
 Access a param with a given name.
 

Detailed Description

a map that holds params to be passed to a shader

Constructor & Destructor Documentation

◆ ShaderParams()

constructor

◆ ~ShaderParams()

destructor

Member Function Documentation

◆ begin()

Iterator begin ( ) const

Iterator to first parameter.

Remarks
Necessary for range-base for loop support
Returns
Iterator pointing to first parameter.

◆ ClearDirty()

void ClearDirty ( )

Resets the dirty flag.

◆ end()

Iterator end ( ) const

Iterator to one past last param.

Remarks
Necessary for range-base for loop support
Returns
Iterator pointing to one past last parameter.

◆ IsDirty()

bool IsDirty ( ) const

Have the params changed?

◆ operator[]() [1/2]

ShaderParam & operator[] ( const std::string _name)

Access a param with a given name.

Parameters
[in]_nameIdentifier for the parameter
Returns
parameter reference

◆ operator[]() [2/2]

const ShaderParam & operator[] ( const std::string _name) const

Access a param with a given name.

Parameters
[in]_nameIdentifier for the parameter
Returns
const parameter reference

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