Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8369 in orxonox.OLD for trunk/src/lib/graphics/importer/material.cc


Ignore:
Timestamp:
Jun 14, 2006, 11:04:24 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: finaly moved the *#\!3i& chars out of Material

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/material.cc

    r8362 r8369  
    196196
    197197/**
    198  *  Sets the Material Illumination Model.
    199  *  illu illumination Model in char* form
    200  */
    201 void Material::setIllum (char* illum)
    202 {
    203   this->setIllum (atoi(illum));
    204 }
    205 
    206 /**
    207198 *  Sets the Material Diffuse Color.
    208199 * @param r Red Color Channel.a
     
    220211}
    221212
    222 /**
    223  *  Sets the Material Diffuse Color.
    224  * @param rgb The red, green, blue channel in char format (with spaces between them)
    225  */
    226 void Material::setDiffuse (char* rgb)
    227 {
    228   float r,g,b;
    229   sscanf (rgb, "%f %f %f", &r, &g, &b);
    230   this->setDiffuse (r, g, b);
    231 }
    232213
    233214/**
     
    247228
    248229/**
    249  *  Sets the Material Ambient Color.
    250  * @param rgb The red, green, blue channel in char format (with spaces between them)
    251  */
    252 void Material::setAmbient (char* rgb)
    253 {
    254   float r,g,b;
    255   sscanf (rgb, "%f %f %f", &r, &g, &b);
    256   this->setAmbient (r, g, b);
    257 }
    258 
    259 /**
    260230 *  Sets the Material Specular Color.
    261231 * @param r Red Color Channel.
     
    273243
    274244/**
    275  *  Sets the Material Specular Color.
    276  * @param rgb The red, green, blue channel in char format (with spaces between them)
    277 */
    278 void Material::setSpecular (char* rgb)
    279 {
    280   float r,g,b;
    281   sscanf (rgb, "%f %f %f", &r, &g, &b);
    282   this->setSpecular (r, g, b);
    283 }
    284 
    285 /**
    286245 *  Sets the Material Shininess.
    287246 * @param shini stes the Shininess from float.
     
    291250  this->shininess = shini;
    292251}
    293 /**
    294  *  Sets the Material Shininess.
    295  * @param shini stes the Shininess from char*.
    296 */
    297 void Material::setShininess (char* shini)
    298 {
    299   this->setShininess (atof(shini));
    300 }
    301252
    302253/**
     
    308259  PRINTF(4)("setting Transparency of Material %s to %f.\n", this->getName(), trans);
    309260  this->transparency = trans;
    310 }
    311 /**
    312  *  Sets the Material Transparency.
    313  * @param trans stes the Transparency from char*.
    314 */
    315 void Material::setTransparency (char* trans)
    316 {
    317   this->setTransparency (atof(trans));
    318261}
    319262
Note: See TracChangeset for help on using the changeset viewer.