--------------------------Controllers-----------------------------------------
| 478 | |
| 479 | // --------------------------Controllers----------------------------------------- |
| 480 | void EveLensflare::SetControllerVariable( const char* name, float value ) |
| 481 | { |
| 482 | auto found = find_if( begin( m_controllerVariables ), end( m_controllerVariables ), [name]( auto& x ) { return x.first == name; } ); |
| 483 | if( found == end( m_controllerVariables ) ) |
| 484 | { |
| 485 | m_controllerVariables.push_back( { name, value } ); |
| 486 | } |
| 487 | else |
| 488 | { |
| 489 | found->second = value; |
| 490 | } |
| 491 | for( auto it = m_controllers.begin(); it != m_controllers.end(); ++it ) |
| 492 | { |
| 493 | ( *it )->SetVariable( name, value ); |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | void EveLensflare::HandleControllerEvent( const char* name ) |
| 498 | { |