------------------------------------------------------ ParseShaders Reads in a group of shaders and registers them input: Parse group that contains the list of shaders to parse return: success of parse operation. ------------------------------------------------------
| 1399 | // success of parse operation. |
| 1400 | //------------------------------------------------------ |
| 1401 | bool CPrimitiveTemplate::ParseShaders( const CGPProperty& grp ) |
| 1402 | { |
| 1403 | bool any = false; |
| 1404 | for( auto& value : grp.GetValues() ) |
| 1405 | { |
| 1406 | if( !value.empty() ) |
| 1407 | { |
| 1408 | any = true; |
| 1409 | int handle = theFxHelper.RegisterShader( value ); |
| 1410 | mMediaHandles.AddHandle( handle ); |
| 1411 | } |
| 1412 | } |
| 1413 | if( !any ) |
| 1414 | { |
| 1415 | // empty "list" |
| 1416 | theFxHelper.Print( "CPrimitiveTemplate::ParseShaders called with an empty list!\n" ); |
| 1417 | return false; |
| 1418 | } |
| 1419 | return true; |
| 1420 | } |
| 1421 | |
| 1422 | //------------------------------------------------------ |
| 1423 | // ParseSounds |
nothing calls this directly
no test coverage detected