本文整理汇总了C++中CInifile::w_fvector4方法的典型用法代码示例。如果您正苦于以下问题:C++ CInifile::w_fvector4方法的具体用法?C++ CInifile::w_fvector4怎么用?C++ CInifile::w_fvector4使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CInifile
的用法示例。
在下文中一共展示了CInifile::w_fvector4方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void time::save (CInifile& config)
{
config.w_string (m_identifier.c_str(),"ambient", m_ambient.c_str());
config.w_fvector3 (m_identifier.c_str(),"ambient_color", ambient);
config.w_string (m_identifier.c_str(),"clouds_texture", clouds_texture_name.c_str());
config.w_float (m_identifier.c_str(),"far_plane", far_plane);
config.w_float (m_identifier.c_str(),"fog_distance", fog_distance);
config.w_float (m_identifier.c_str(),"fog_density", fog_density);
config.w_fvector3 (m_identifier.c_str(),"fog_color", fog_color);
config.w_fvector3 (m_identifier.c_str(),"rain_color", rain_color);
config.w_float (m_identifier.c_str(),"rain_density", rain_density);
config.w_fvector3 (m_identifier.c_str(),"sky_color", sky_color);
config.w_float (m_identifier.c_str(),"sky_rotation", rad2deg(sky_rotation));
config.w_string (m_identifier.c_str(),"sky_texture", sky_texture_name.c_str());
config.w_fvector3 (m_identifier.c_str(),"sun_color", sun_color);
config.w_float (m_identifier.c_str(),"sun_shafts_intensity", m_fSunShaftsIntensity);
config.w_string (m_identifier.c_str(),"sun", m_sun.c_str());
config.w_string (m_identifier.c_str(),"thunderbolt_collection", m_thunderbolt_collection.c_str());
config.w_float (m_identifier.c_str(),"thunderbolt_duration", bolt_duration);
config.w_float (m_identifier.c_str(),"thunderbolt_period", bolt_period);
config.w_float (m_identifier.c_str(),"water_intensity", m_fWaterIntensity);
config.w_float (m_identifier.c_str(),"wind_direction", rad2deg(wind_direction));
config.w_float (m_identifier.c_str(),"wind_velocity", wind_velocity);
config.w_fvector4 (m_identifier.c_str(),"hemisphere_color", hemi_color);
config.w_float (m_identifier.c_str(),"sun_altitude", rad2deg(sun_dir.getH()));
config.w_float (m_identifier.c_str(),"sun_longitude", rad2deg(sun_dir.getP()));
config.w_fvector4 (m_identifier.c_str(),"clouds_color", clouds_color);
}