Changeset 8369 in orxonox.OLD for trunk/src/lib/graphics/importer/material.cc
- Timestamp:
- Jun 14, 2006, 11:04:24 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r8362 r8369 196 196 197 197 /** 198 * Sets the Material Illumination Model.199 * illu illumination Model in char* form200 */201 void Material::setIllum (char* illum)202 {203 this->setIllum (atoi(illum));204 }205 206 /**207 198 * Sets the Material Diffuse Color. 208 199 * @param r Red Color Channel.a … … 220 211 } 221 212 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 }232 213 233 214 /** … … 247 228 248 229 /** 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 /**260 230 * Sets the Material Specular Color. 261 231 * @param r Red Color Channel. … … 273 243 274 244 /** 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 /**286 245 * Sets the Material Shininess. 287 246 * @param shini stes the Shininess from float. … … 291 250 this->shininess = shini; 292 251 } 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 }301 252 302 253 /** … … 308 259 PRINTF(4)("setting Transparency of Material %s to %f.\n", this->getName(), trans); 309 260 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));318 261 } 319 262
Note: See TracChangeset
for help on using the changeset viewer.