Changeset 7211 in orxonox.OLD for branches/std/src/lib/graphics
- Timestamp:
- Mar 10, 2006, 4:52:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/graphics/graphics_engine.cc
r7203 r7211 176 176 const std::string textures = iniParser->getVar(CONFIG_NAME_TEXTURES, CONFIG_SECTION_VIDEO_ADVANCED, "0"); 177 177 if (textures[0] == '1' || textures == "true") 178 Texture::setTextureEnableState( 178 Texture::setTextureEnableState(true); 179 179 else 180 180 Texture::setTextureEnableState(false); … … 183 183 SubString resolution(iniParser->getVar(CONFIG_NAME_RESOLUTION, CONFIG_SECTION_VIDEO, "640x480").c_str(), 'x'); ///FIXME 184 184 //resolution.debug(); 185 186 this->initVideo( atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16);185 MultiType x = resolution.getString(0), y = resolution.getString(1); 186 this->initVideo(x.getInt(), y.getInt(), 16); 187 187 188 188 // GraphicsEffect* fe = new FogEffect(NULL); … … 533 533 if (this->hwExtensions != NULL) 534 534 for (unsigned int i = 0; i < this->hwExtensions->getCount(); i++) 535 if ( !strcmp(extension, this->hwExtensions->getString(i)))535 if ( this->hwExtensions->getString(i) == extension) 536 536 return true; 537 537 return false;
Note: See TracChangeset
for help on using the changeset viewer.