Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5261 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc


Ignore:
Timestamp:
Sep 26, 2005, 10:34:21 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: structure of the Shader-lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r5260 r5261  
    225225}
    226226
     227/**
     228 * grabs the Hardware Specifics
     229 * checks for all the different HW-types
     230 */
    227231void GraphicsEngine::grabHardwareSettings()
    228232{
     
    308312}
    309313
    310 
    311314/**
    312315 *  Signalhandler, for when the resolution has changed
     
    322325*/
    323326bool GraphicsEngine::texturesEnabled = true;
    324 
    325 
    326327
    327328/**
     
    378379     return false;
    379380};
    380 
    381381
    382382/**
     
    470470      PRINT(4)(" |  %d x %d\n", this->videoModes[i]->w, this->videoModes[i]->h);
    471471  }
     472}
     473
     474/**
     475 * checks wether a certain extension is availiable
     476 * @param extension the Extension to check for (ex. GL_ARB_texture_env_dot3)
     477 * @return true if it is, false otherwise
     478 */
     479bool GraphicsEngine::hwSupportsEXT(const char* extension)
     480{
     481  if (this->hwExtensions != NULL)
     482    for (unsigned int i = 0; i < this->hwExtensions->getCount(); i++)
     483      if (!strcmp(extension, this->hwExtensions->getString(i)))
     484        return true;
     485  return false;
    472486}
    473487
     
    554568
    555569/**
    556   \brief processes the events for orxonox main class
     570  \brief processes the events for the GraphicsEngine class
    557571* @param the event to handle
    558572 */
Note: See TracChangeset for help on using the changeset viewer.