- Timestamp:
- Oct 3, 2006, 2:38:31 PM (18 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_def.h
r8148 r9876 8 8 9 9 #ifdef HAVE_SDL_H 10 #include "SDL_keysym.h"10 #include "SDL_keysym.h" 11 11 #else 12 #include "SDL/SDL_keysym.h"12 #include "SDL/SDL_keysym.h" 13 13 #endif 14 14 15 16 15 //! these are the extended event types, that are not included in SDL_keysym 17 typedef enum extEventTyes 18 { 16 typedef enum { 19 17 EV_MOUSE_BUTTON_LEFT = SDLK_LAST + 1, 20 18 EV_MOUSE_BUTTON_MIDDLE, … … 37 35 38 36 EV_NUMBER 39 } ;37 } extEventTyes; 40 38 41 39 42 40 //! this is an enumeration of all states of the event_handler/game 43 typedef enum elState41 typedef enum 44 42 { 45 43 ES_NULL = -1, … … 48 46 ES_MENU = 2, //!< orxonox menu state 49 47 ES_SHELL = 3, //!< if we are in shell Modus 50 48 51 49 ES_ALL = 4, //!< you want to register events for all states 52 50 53 ES_NUMBER = 5, //!< the number of states 54 }; 55 56 57 51 ESTATE_NUMBER = 5 //!< the number of states < Namespace-problem in windows. 52 } elState; 58 53 59 54 #endif /* _EVENT_DEF_H */ -
trunk/src/lib/event/event_handler.h
r9869 r9876 71 71 static EventHandler* singletonRef; //!< the singleton reference 72 72 73 std::vector<EventListener*> listeners[ES _NUMBER][EV_NUMBER]; //!< a list of registered listeners.73 std::vector<EventListener*> listeners[ESTATE_NUMBER][EV_NUMBER]; //!< a list of registered listeners. 74 74 elState state; //!< the state of the event handlder. 75 75 std::stack<short> stateStack; //!< a stack for the States we are in. 76 76 KeyMapper keyMapper; //!< reference to the key mapper. 77 77 78 bool bUNICODE[ES _NUMBER]; //!< If unicode should be enabled.78 bool bUNICODE[ESTATE_NUMBER]; //!< If unicode should be enabled. 79 79 bool eventsGrabbed; //!< If the events should be grabbed 80 80 -
trunk/src/lib/event/event_listener.h
r9869 r9876 8 8 9 9 #include "base_object.h" 10 #include "event_def.h" 10 11 #include "event.h" 11 #include "event_def.h"12 12 13 13 //! A class for event listener -
trunk/src/lib/graphics/graphics_engine.cc
r9869 r9876 376 376 #ifdef __WIN32__ 377 377 // REBUILDING TEXTURES (ON WINDOWS CONTEXT SWITCH) 378 const std::list<BaseObject*>* texList = ClassList::getList(CL_TEXTURE); 379 if (texList != NULL) 380 { 381 std::list<BaseObject*>::const_iterator reTex; 382 for (reTex = texList->begin(); reTex != texList->end(); reTex++) 383 dynamic_cast<Texture*>(*reTex)->rebuild(); 384 } 378 ObjectList<Texture>::const_iterator retex; 379 for (retex = Texture::objectList().begin(); retex != Texture::objectList().end(); ++retex) 380 (*retex)->rebuild(); 381 385 382 // REBUILDING MODELS 386 const std::list<BaseObject*>* modelList = ClassList::getList(CL_STATIC_MODEL); 387 if (texList != NULL) 388 { 389 std::list<BaseObject*>::const_iterator reModel; 390 for (reModel = modelList->begin(); reModel != modelList->end(); reModel++) 391 dynamic_cast<StaticModel*>(*reModel)->rebuild(); 392 } 383 ObjectList<StaticModel>::const_iterator remod; 384 for (remod = StaticModel::objectList().begin(); remod != StaticModel::objectList().end(); ++remod) 385 (*remod)->rebuild(); 386 393 387 #endif /* __WIN32__ */ 394 388 return 1; -
trunk/src/lib/graphics/importer/md2/md2Model.h
r9869 r9876 83 83 FALLBACK, //9 84 84 WAVE, //10 85 POINT, //1185 /// TODO: DO THIS BACK POINT, //11 86 86 CROUCH_STAND, 87 87 CROUCH_WALK, -
trunk/src/lib/graphics/spatial_separation/Makefile.am
r5463 r9876 4 4 noinst_LIBRARIES = libORXquadtree.a 5 5 6 libORXquadtree_a_SOURCES = quadtree.cc \ 6 libORXquadtree_a_SOURCES = 7 # quadtree.cc \ 7 8 quadtree_node.cc \ 8 9 spatial_separation.cc -
trunk/src/lib/util/filesys/directory.cc
r9869 r9876 45 45 #include <windows.h> 46 46 #include <winbase.h> 47 const char Direc otry::delimiter = '\\';47 const char Directory::delimiter = '\\'; 48 48 #endif 49 49
Note: See TracChangeset
for help on using the changeset viewer.