Changeset 9371 in orxonox.OLD for branches/proxy/src/lib/graphics
- Timestamp:
- Jul 20, 2006, 11:08:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib/graphics
- Files:
-
- 9 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(), -
branches/proxy/src/lib/graphics/render2D/element_2d.cc
r8989 r9371 214 214 { 215 215 PRINTF(2)("Unable to set %s to layer %s, because it's parent(%s) is of higher layer %s\n", 216 this->get Name(),216 this->getCName(), 217 217 Element2D::layer2DToChar(layer), 218 this->parent->get Name(),218 this->parent->getCName(), 219 219 Element2D::layer2DToChar(this->parent->getLayer())); 220 220 layer = this->parent->getLayer(); … … 602 602 { 603 603 PRINTF(2)("Layer '%s' of Child(%s::%s) lower than parents(%s::%s) layer '%s'. updating...\n", 604 Element2D::layer2DToChar(child->getLayer()),child->getClass Name(), child->getName(),605 this->getClass Name(), this->getName(), Element2D::layer2DToChar(this->layer));604 Element2D::layer2DToChar(child->getLayer()),child->getClassCName(), child->getCName(), 605 this->getClassCName(), this->getCName(), Element2D::layer2DToChar(this->layer)); 606 606 child->layer = this->layer; 607 607 this->children.push_front(child); … … 627 627 { 628 628 PRINTF(1)("Tried to reparent2D to own child '%s::%s' to '%s::%s'.\n", 629 this->getClass Name(), this->getName(), child->getClassName(), child->getName());629 this->getClassCName(), this->getCName(), child->getClassCName(), child->getCName()); 630 630 child->parent = NULL; 631 631 } … … 701 701 { 702 702 (*reparenter)->reparent2D(); 703 PRINTF(5)("REPARENTED TO: %s::%s\n",(*reparenter)->getParent2D()->getClass Name(),(*reparenter)->getParent2D()->getName());703 PRINTF(5)("REPARENTED TO: %s::%s\n",(*reparenter)->getParent2D()->getClassCName(),(*reparenter)->getParent2D()->getCName()); 704 704 } 705 705 } … … 723 723 else 724 724 PRINTF(2)("Not Found Element2D's (%s::%s) new Parent by Name: %s\n", 725 this->getClass Name(), this->getName(), parentName.c_str());725 this->getClassCName(), this->getCName(), parentName.c_str()); 726 726 } 727 727 … … 865 865 Vector2D tmp = *this->toCoordinate; 866 866 this->setRelCoor2D(tmp); 867 PRINTF(5)("SmoothMove of %s finished\n", this->get Name());867 PRINTF(5)("SmoothMove of %s finished\n", this->getCName()); 868 868 } 869 869 } … … 879 879 float tmp = *this->toDirection; 880 880 this->setRelDir2D(tmp); 881 PRINTF(5)("SmoothRotate of %s finished\n", this->get Name());881 PRINTF(5)("SmoothRotate of %s finished\n", this->getCName()); 882 882 } 883 883 } … … 893 893 delete this->toSize; 894 894 this->toSize = NULL; 895 PRINTF(5)("SmoothRotate of %s finished\n", this->get Name());895 PRINTF(5)("SmoothRotate of %s finished\n", this->getCName()); 896 896 } 897 897 } … … 900 900 this->lastAbsCoordinate = this->absCoordinate; 901 901 902 PRINTF(5)("Element2D::update - %s - (%f, %f)\n", this->get Name(), this->absCoordinate.x, this->absCoordinate.y);902 PRINTF(5)("Element2D::update - %s - (%f, %f)\n", this->getCName(), this->absCoordinate.x, this->absCoordinate.y); 903 903 904 904 … … 1026 1026 PRINT(0)(" -"); 1027 1027 PRINT(0)("E2D(%s::%s);AC:(%0.2f, %0.2f);RC:(%0.2f, %0.2f);AD(%0.2f)->%s;Layer:(%s)\n", 1028 this->getClass Name(),1029 this->get Name(),1028 this->getClassCName(), 1029 this->getCName(), 1030 1030 this->absCoordinate.x, 1031 1031 this->absCoordinate.y, -
branches/proxy/src/lib/graphics/text_engine/limited_width_text.cc
r8981 r9371 160 160 void LimitedWidthText::debug() const 161 161 { 162 printf("Debug %s::%s \n", this->getClass Name(), this->getName() );162 printf("Debug %s::%s \n", this->getClassCName(), this->getCName() ); 163 163 } -
branches/proxy/src/lib/graphics/text_engine/multi_line_text.cc
r8768 r9371 152 152 void MultiLineText::debug() const 153 153 { 154 printf("Debug %s::%s: %d lines\n", this->getClass Name(), this->getName(), this->getLineCount());154 printf("Debug %s::%s: %d lines\n", this->getClassCName(), this->getCName(), this->getLineCount()); 155 155 156 156 std::string tmpText = this->text(); -
branches/proxy/src/lib/graphics/text_engine/text.cc
r9352 r9371 279 279 void Text::debug() const 280 280 { 281 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->get Name(), this->_font.getName(), this->_text.c_str());281 PRINT(0)("=== TEXT: %s (with Font:'%s') displaying %s ===\n", this->getCName(), this->_font.getCName(), this->_text.c_str()); 282 282 // PRINT(0)("Color: r=%0.2f g=%0.2f b=%0.2f a=%0.2f\n", this->_color.r(), this->_color.g(), this->_color.b(), this->_color.a()); 283 283 }
Note: See TracChangeset
for help on using the changeset viewer.