Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2012, 3:03:02 PM (12 years ago)
Author:
landauf
Message:

renamed set and get functions in MultiType:

  • setValue() → set()
  • getXYZ() → get<xyz>()

(e.g. get<int>() instead of getInt() and get<std::string>() instead of getString())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/tools/Shader.cc

    r9222 r9224  
    205205                    // change the value of the parameter depending on its type
    206206                    if (it->value_.isType<int>())
    207                         passPtr->getFragmentProgramParameters()->setNamedConstant(it->parameter_, it->value_.getInt());
     207                        passPtr->getFragmentProgramParameters()->setNamedConstant(it->parameter_, it->value_.get<int>());
    208208                    else if (it->value_.isType<float>())
    209                         passPtr->getFragmentProgramParameters()->setNamedConstant(it->parameter_, it->value_.getFloat());
     209                        passPtr->getFragmentProgramParameters()->setNamedConstant(it->parameter_, it->value_.get<float>());
    210210                }
    211211                else
Note: See TracChangeset for help on using the changeset viewer.