Changeset 6645 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jan 21, 2006, 4:56:43 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r6622 r6645 303 303 //! @todo Textures from .mtl-file need special care. 304 304 if (dMap != NULL) 305 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, ( void*)&target);305 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME, (int)target); 306 306 else 307 307 this->diffuseTexture = NULL; -
trunk/src/lib/graphics/importer/md2Model.cc
r6222 r6645 78 78 { 79 79 /* this creates the data container via ressource manager */ 80 this->data = (MD2Data*)ResourceManager::getInstance()->load(modelFileName, MD2, RP_GAME, (void*)skinFileName);80 this->data = (MD2Data*)ResourceManager::getInstance()->load(modelFileName, MD2, RP_GAME, skinFileName); 81 81 if( unlikely(this->data == NULL)) 82 82 PRINTF(0)("The model was not found, MD2Model Loader finished abnormaly. Update the data-repos\n"); -
trunk/src/lib/graphics/shader.cc
r5390 r6645 106 106 Shader* Shader::getShader(const char* vertexShaderFile, const char* fragmentShaderFile) 107 107 { 108 return (Shader*)ResourceManager::getInstance()->load(vertexShaderFile, SHADER, RP_LEVEL, (void*)fragmentShaderFile);108 return (Shader*)ResourceManager::getInstance()->load(vertexShaderFile, SHADER, RP_LEVEL, fragmentShaderFile); 109 109 } 110 110 -
trunk/src/lib/graphics/text_engine/text.cc
r6349 r6645 92 92 if (fontFile != NULL) 93 93 { 94 tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, &fontSize);94 tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, (int)fontSize); 95 95 if (tmpFont != NULL) 96 96 this->font = tmpFont; -
trunk/src/lib/util/executor/executor.cc
r6222 r6645 60 60 { 61 61 int type = va_arg(parameterList, int); 62 this->defaultValue[i].setType( type);62 this->defaultValue[i].setType((MT_Type)type); 63 63 } 64 64 } -
trunk/src/lib/util/multi_type.cc
r6643 r6645 187 187 * @param type the new Type 188 188 */ 189 void MultiType::setType( inttype)189 void MultiType::setType(MT_Type type) 190 190 { 191 191 if (this->type != type) 192 this->type = (MT_Type)type;192 this->type = type; 193 193 } 194 194 -
trunk/src/lib/util/multi_type.h
r6644 r6645 31 31 */ 32 32 class MultiType { 33 34 33 public: 35 34 MultiType(); … … 55 54 bool operator==(char value) const { return (this->getChar() == value); }; 56 55 bool operator==(const char* value) const; 56 bool operator==(MT_Type type) const { return (this->type == type); } 57 bool operator!=(MT_Type type) const { return (this->type != type); } 57 58 58 void setType( inttype);59 void setType(MT_Type type); 59 60 60 61 void setBool(bool value);
Note: See TracChangeset
for help on using the changeset viewer.