Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 21, 2005, 11:09:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: visibility of Element2D-debug-draw through
ShellCommand:: Render2D toggleNodeVisibility

File:
1 edited

Legend:

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

    r5415 r5417  
    117117  // looking if we are in fullscreen-mode
    118118  const char* fullscreen = iniParser->getVar(CONFIG_NAME_FULLSCREEN, CONFIG_SECTION_VIDEO, "0");
    119   if (strchr(fullscreen, '1') || strcasecmp(fullscreen, "true"))
     119  if (strchr(fullscreen, '1') || !strcasecmp(fullscreen, "true"))
    120120    this->fullscreenFlag = SDL_FULLSCREEN;
    121121
    122122  // looking if we are in fullscreen-mode
    123123  const char* textures = iniParser->getVar(CONFIG_NAME_TEXTURES, CONFIG_SECTION_VIDEO_ADVANCED, "0");
    124   if (strchr(textures, '1') || strcasecmp(textures, "true"))
     124  if (strchr(textures, '1') || !strcasecmp(textures, "true"))
    125125    this->texturesEnabled = true;
    126126  else
     
    544544void GraphicsEngine::draw() const
    545545{
     546  LightManager::getInstance()->draw();
    546547  GraphicsEngine::storeMatrices();
    547548  Shader::suspendShader();
     549
    548550  Render2D::getInstance()->draw(E2D_LAYER_ALL);
    549551  Shader::restoreShader();
    550   LightManager::getInstance()->draw();
    551552}
    552553
Note: See TracChangeset for help on using the changeset viewer.