Changeset 9371 in orxonox.OLD for branches/proxy/src/lib/graphics/importer
- Timestamp:
- Jul 20, 2006, 11:08:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib/graphics/importer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/graphics/importer/material.cc
r8761 r9371 88 88 Material::~Material() 89 89 { 90 PRINTF(5)("delete Material %s.\n", this->get Name());90 PRINTF(5)("delete Material %s.\n", this->getCName()); 91 91 92 92 if (this->ambientTexture != NULL) … … 217 217 void Material::setIllum (int illum) 218 218 { 219 PRINTF(4)("setting illumModel of Material %s to %i\n", this->get Name(), illum);219 PRINTF(4)("setting illumModel of Material %s to %i\n", this->getCName(), illum); 220 220 this->illumModel = illum; 221 221 } … … 229 229 void Material::setDiffuse (float r, float g, float b) 230 230 { 231 PRINTF(4)("setting Diffuse Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);231 PRINTF(4)("setting Diffuse Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 232 232 this->diffuse = Color(r, g, b, this->diffuse.a() ); 233 233 } … … 242 242 void Material::setAmbient (float r, float g, float b) 243 243 { 244 PRINTF(4)("setting Ambient Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);244 PRINTF(4)("setting Ambient Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 245 245 this->ambient = Color(r, g, b, 1.0); 246 246 } … … 254 254 void Material::setSpecular (float r, float g, float b) 255 255 { 256 PRINTF(4)("setting Specular Color of Material %s to r=%f g=%f b=%f.\n", this->get Name(), r, g, b);256 PRINTF(4)("setting Specular Color of Material %s to r=%f g=%f b=%f.\n", this->getCName(), r, g, b); 257 257 this->specular = Color (r, g, b, 1.0); 258 258 } … … 273 273 void Material::setTransparency (float trans) 274 274 { 275 PRINTF(4)("setting Transparency of Material %s to %f.\n", this->get Name(), trans);275 PRINTF(4)("setting Transparency of Material %s to %f.\n", this->getCName(), trans); 276 276 this->diffuse.a() = trans; 277 277 } … … 455 455 void Material::debug() const 456 456 { 457 PRINT(0)("Debug Material: %s\n", this->get Name());457 PRINT(0)("Debug Material: %s\n", this->getCName()); 458 458 PRINT(0)("illumModel: %d ; ShiniNess %f\n", this->illumModel, shininess); 459 459 PRINT(0)("diffuseColor: "); diffuse.debug(); -
branches/proxy/src/lib/graphics/importer/static_model.cc
r9357 r9371 161 161 { 162 162 PRINTF(4)("Deleting Model "); 163 if ( this->getName())164 { 165 PRINT(4)("%s\n", this->get Name());163 if (!this->getName().empty()) 164 { 165 PRINT(4)("%s\n", this->getCName()); 166 166 } 167 167 else … … 214 214 void StaticModel::rebuild() 215 215 { 216 PRINTF(3)("Rebuilding Model '%s'\n", this->get Name());216 PRINTF(3)("Rebuilding Model '%s'\n", this->getCName()); 217 217 this->finalize(); 218 218 } … … 266 266 tmpGroup = tmpGroup->next; 267 267 } 268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->get Name());268 PRINTF(2)("Model number %i in %s not Found.\n", groupNumber, this->getCName()); 269 269 return; 270 270 } … … 291 291 tmpGroup = tmpGroup->next; 292 292 } 293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->get Name());293 PRINTF(2)("Model Named %s in %s not Found.\n", groupName.c_str(), this->getCName()); 294 294 return; 295 295 } … … 748 748 { 749 749 tmpFace->material->select(); 750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->get Name());750 PRINTF(5)("using material %s for coming Faces.\n", tmpFace->material->getCName()); 751 751 } 752 752 } … … 840 840 else if( tmpFace->vertexCount > 4) { 841 841 if (!warned) { 842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->get Name());842 PRINTF(2)("This model (%s) got over 4 vertices per face <=> conflicts in the CD engine!\n", this->getCName()); 843 843 warned = true; 844 844 } -
branches/proxy/src/lib/graphics/importer/texture.cc
r8761 r9371 230 230 if (this->data->getStoredImage() != NULL) 231 231 { 232 PRINTF(3)("Reloading Texture of %s '%s'\n", this->getClass Name(), this->getName());232 PRINTF(3)("Reloading Texture of %s '%s'\n", this->getClassCName(), this->getCName()); 233 233 this->setTexture(Texture::loadTexToGL(this->data->getStoredImage())); 234 234 } -
branches/proxy/src/lib/graphics/importer/texture_sequence.cc
r8619 r9371 225 225 bool TextureSequence::rebuild() 226 226 { 227 PRINTF(3)("Reloading TextureSequence of %s '%s'\n", this->getClass Name(), this->getName());227 PRINTF(3)("Reloading TextureSequence of %s '%s'\n", this->getClassCName(), this->getCName()); 228 228 229 229 for (unsigned int i = 0; i < this->textures.size(); i++) -
branches/proxy/src/lib/graphics/importer/vertex_array_model.cc
r9357 r9371 116 116 VertexArrayModel::~VertexArrayModel() 117 117 { 118 PRINTF(4)("Deleting VertexArrayModel %s\n", this->get Name());118 PRINTF(4)("Deleting VertexArrayModel %s\n", this->getCName()); 119 119 } 120 120 … … 127 127 void VertexArrayModel::draw() const 128 128 { 129 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->get Name());129 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->getCName()); 130 130 glEnableClientState(GL_VERTEX_ARRAY ); 131 131 glEnableClientState(GL_TEXTURE_COORD_ARRAY ); … … 343 343 void VertexArrayModel::debug() const 344 344 { 345 PRINT(0)("VertexArrayModel (%s): debug\n", this->get Name());345 PRINT(0)("VertexArrayModel (%s): debug\n", this->getCName()); 346 346 PRINT(0)("Stripes: %d; Indices: %d; Vertices: %d; Normals %d; TextCoords %d; Colors %d\n", 347 347 this->stripes.size(),
Note: See TracChangeset
for help on using the changeset viewer.