Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7910 in orxonox.OLD for branches/gui/src/lib


Ignore:
Timestamp:
May 27, 2006, 5:23:04 PM (18 years ago)
Author:
bensch
Message:

more gui-stuff

Location:
branches/gui/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/event/event_handler.cc

    r7905 r7910  
    230230void EventHandler::unsubscribe(EventListener* el, elState state)
    231231{
    232   if( el == NULL || state >= ES_NUMBER)
    233     return;
     232  assert( el != NULL && state < ES_NUMBER);
    234233  if( state == ES_ALL)
    235234  {
     
    419418
    420419  /// setting a temporary state in case of an EventListener's process changes the state.
     420  printf("%d\n", this->listeners[state][event.type].size());
    421421  for (unsigned int i = 0; i < this->listeners[state][event.type].size(); i++)
    422422  {
    423     PRINT(4)("=  Event dispatcher msg: This event has been consumed\n");
    424     PRINT(4)("=  Got Event nr %i, for state %i %s::%s\n", event.type, state, this->listeners[state][event.type][i]->getClassName(), this->listeners[state][event.type][i]->getName());
    425     PRINT(4)("=======================================================\n");
     423    PRINT(0)("=  Event dispatcher msg: This event has been consumed\n");
     424    PRINT(0)("=  Got Event nr %i, for state %i (%d registered) to %s::%s(%p)\n", event.type, i, state, this->listeners[state][event.type][i]->getClassName(), this->listeners[state][event.type][i]->getName(), this->listeners[state][event.type][i]);
     425    PRINT(0)("=======================================================\n");
    426426    this->listeners[state][event.type][i]->process(event);
    427427  }
  • branches/gui/src/lib/graphics/graphics_engine.cc

    r7868 r7910  
    286286  SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);   //Use at least 16 bits for the depth buffer
    287287  SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);  //Enable double buffering
     288
     289  glEnable(GL_CULL_FACE);
     290  glCullFace(GL_FRONT);
    288291}
    289292
Note: See TracChangeset for help on using the changeset viewer.