Commit 61ad3837 authored by Jan Möbius's avatar Jan Möbius
Browse files

Read and write shininess

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9034 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6de8e44c
......@@ -28,6 +28,10 @@ void INIPlugin::parseIniFileT(INIFile& _ini, MeshObject* _object) {
if ( _ini.get_entryVecf( col, _object->name() , "SpecularColor" ) )
_object->materialNode()->set_specular_color(col);
double shininess;
if ( _ini.get_entry( shininess, _object->name() , "Shininess" ) )
_object->materialNode()->set_shininess(shininess);
int size = 1;
if ( _ini.get_entry( size, _object->name() , "PointSize" ) )
_object->materialNode()->set_point_size(size);
......@@ -58,6 +62,9 @@ void INIPlugin::saveIniFileT(INIFile& _ini, MeshObject* _object) {
_ini.add_entryVec( _object->name() ,
"SpecularColor" ,
_object->materialNode()->specular_color());
_ini.add_entry( _object->name() ,
"Shininess" ,
_object->materialNode()->shininess());
_ini.add_entry( _object->name() ,
"PointSize" ,
_object->materialNode()->point_size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment