Changeset 8073 for code/branches/kicklib/src
- Timestamp:
- Mar 14, 2011, 4:08:06 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 1 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
- Property svn:mergeinfo changed
/code/branches/mac_osx (added) merged: 7789,7933-7934,8042-8049,8054-8056,8059-8060,8065,8069-8070,8072
- Property svn:mergeinfo changed
-
code/branches/kicklib/src/OrxonoxConfig.cmake
r8071 r8073 69 69 ENDIF(MSVC) 70 70 71 # Part of a woraround for OS X warnings. See OrxonoxConfig.h.in 72 IF(HAVE_STDINT_H) 73 SET(HAVE_STDINT_H 1) 74 ELSE() 75 SET(HAVE_STDINT_H 0) 76 ENDIF() 77 78 # Check iso646.h include (literal operators) 71 # Check some non standard system includes 79 72 INCLUDE(CheckIncludeFileCXX) 80 73 CHECK_INCLUDE_FILE_CXX(iso646.h HAVE_ISO646_H) 74 CHECK_INCLUDE_FILE_CXX(stdint.h HAVE_STDINT_H) 75 76 # Part of a woraround for OS X warnings. See OrxonoxConfig.h.in 77 SET(ORX_HAVE_STDINT_H ${HAVE_STDINT_H}) 81 78 82 79 IF(MSVC) -
code/branches/kicklib/src/OrxonoxConfig.h.in
r8071 r8073 162 162 163 163 // On OS X some headers already define HAVE_STDINT_H and that spits out 164 // some warnings. Therefore we use this syntax.164 // some warnings. Therefore we use this macro. 165 165 // Note: This requires some extra code in OrxonoxConfig.cmake 166 #if @HAVE_STDINT_H@ 166 #cmakedefine ORX_HAVE_STDINT_H 167 #ifdef ORX_HAVE_STDINT_H 167 168 # include <stdint.h> 168 169 #elif defined(ORXONOX_COMPILER_MSVC) -
code/branches/kicklib/src/external/bullet/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp
r8071 r8073 38 38 int gNumGjkChecks = 0; 39 39 40 #ifdef check41 struct CompilerError42 {43 void CompilerError() {}44 };45 #endif46 40 47 41 btGjkPairDetector::btGjkPairDetector(const btConvexShape* objectA,const btConvexShape* objectB,btSimplexSolverInterface* simplexSolver,btConvexPenetrationDepthSolver* penetrationDepthSolver) -
code/branches/kicklib/src/external/ois/CMakeLists.txt
r8071 r8073 35 35 OISPrereqs.h 36 36 37 37 #COMPILATION_BEGIN OISCompilation.cpp 38 38 OISEffect.cpp 39 39 OISException.cpp … … 43 43 OISKeyboard.cpp 44 44 OISObject.cpp 45 45 #COMPILATION_END 46 46 ) 47 47 IF(WIN32) … … 53 53 ENDIF() 54 54 55 # Some unexplained hackery for Visual Studio 2005 56 ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC8) 57 58 # MinGW doesn't come with some required Windows headers 59 IF(MINGW) 60 INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR}) 61 ENDIF() 62 55 63 ORXONOX_ADD_LIBRARY(ois_orxonox 56 64 ORXONOX_EXTERNAL … … 58 66 "OIS_NONCLIENT_BUILD" 59 67 VERSION 60 1. 268 1.3 61 69 SOURCE_FILES 62 70 ${OIS_FILES} … … 64 72 65 73 IF(WIN32) 66 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} )74 TARGET_LINK_LIBRARIES(ois_orxonox ${DIRECTX_LIBRARIES} ${WMI_LIBRARY}) 67 75 ELSEIF(APPLE) 68 76 TARGET_LINK_LIBRARIES(ois_orxonox "/System/Library/Frameworks/IOKit.framework" "/System/Library/Frameworks/Carbon.framework") -
code/branches/kicklib/src/external/ois/OISPrereqs.h
r8071 r8073 101 101 //-------------- Common Classes, Enums, and Typdef's -------------------------// 102 102 #define OIS_VERSION_MAJOR 1 103 #define OIS_VERSION_MINOR 4103 #define OIS_VERSION_MINOR 3 104 104 #define OIS_VERSION_PATCH 0 105 #define OIS_VERSION_NAME "1. 4.0"105 #define OIS_VERSION_NAME "1.3.0" 106 106 107 107 #define OIS_VERSION ((OIS_VERSION_MAJOR << 16) | (OIS_VERSION_MINOR << 8) | OIS_VERSION_PATCH) -
code/branches/kicklib/src/external/ois/VERSION
r8071 r8073 1 OIS SVN trunk updated on 2010/10/07 (revision 26)2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/ trunk/1 OIS SVN v1.3 branch updated on 2011/02/20 (revision 32) 2 https://wgois.svn.sourceforge.net/svnroot/wgois/ois/branches/v1-3/ -
code/branches/kicklib/src/external/ois/changes_orxonox.diff
r8071 r8073 49 49 50 50 51 --- win32/Win32JoyStick.cpp 52 +++ win32/Win32JoyStick.cpp 53 @@ -26,6 +26,14 @@ 54 #include "OISEvents.h" 55 #include "OISException.h" 56 57 +// (Orxonox): Required for MinGW to compile properly 58 +#ifdef __MINGW32__ 59 +# include <oaidl.h> 60 +# ifndef __MINGW_EXTENSION 61 +# define __MINGW_EXTENSION __extension__ 62 +# endif 63 +#endif 64 + 65 #include <cassert> 66 #include <wbemidl.h> 67 #include <oleauto.h> 68 @@ -39,6 +47,11 @@ 69 } 70 #endif 71 72 +// (Orxonox): MinGW doesn't have swscanf_s 73 +#ifdef __MINGW32__ 74 +# define swscanf_s swscanf 75 +#endif 76 + 77 #ifdef OIS_WIN32_XINPUT_SUPPORT 78 # pragma comment(lib, "xinput.lib") 79 #endif 80 @@ -583,7 +596,12 @@ 81 bool bCleanupCOM = SUCCEEDED(hr); 82 83 // Create WMI 84 + // (Orxonox): Fix for MinGW 85 +#ifdef __MINGW32__ 86 + hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 87 +#else 88 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 89 +#endif 90 if( FAILED(hr) || pIWbemLocator == NULL ) 91 goto LCleanup; 92 93 51 94 --- mac/MacHIDManager.cpp 52 95 +++ mac/MacHIDManager.cpp -
code/branches/kicklib/src/external/ois/linux/LinuxKeyboard.cpp
r8071 r8073 284 284 while( XPending(display) > 0 ) 285 285 { 286 XNextEvent(display, &event); if(KeyPress == event.type) 286 XNextEvent(display, &event); 287 288 if(KeyPress == event.type) 287 289 { 288 290 unsigned int character = 0; -
code/branches/kicklib/src/external/ois/mac/CMakeLists.txt
r8071 r8073 8 8 MacPrereqs.h 9 9 10 10 #COMPILATION_BEGIN OISMacCompilation.cpp 11 11 MacHelpers.cpp 12 12 MacHIDManager.cpp … … 15 15 MacKeyboard.cpp 16 16 MacMouse.cpp 17 17 #COMPILATION_END 18 18 ) -
code/branches/kicklib/src/external/ois/win32/Win32JoyStick.cpp
r8071 r8073 26 26 #include "OISEvents.h" 27 27 #include "OISException.h" 28 29 // (Orxonox): Required for MinGW to compile properly 30 #ifdef __MINGW32__ 31 # include <oaidl.h> 32 # ifndef __MINGW_EXTENSION 33 # define __MINGW_EXTENSION __extension__ 34 # endif 35 #endif 28 36 29 37 #include <cassert> … … 38 46 x = NULL; \ 39 47 } 48 #endif 49 50 // (Orxonox): MinGW doesn't have swscanf_s 51 #ifdef __MINGW32__ 52 # define swscanf_s swscanf 40 53 #endif 41 54 … … 584 597 585 598 // Create WMI 599 // (Orxonox): Fix for MinGW 600 #ifdef __MINGW32__ 601 hr = CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID*)&pIWbemLocator); 602 #else 586 603 hr = CoCreateInstance(__uuidof(WbemLocator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IWbemLocator), (LPVOID*)&pIWbemLocator); 604 #endif 587 605 if( FAILED(hr) || pIWbemLocator == NULL ) 588 606 goto LCleanup; -
code/branches/kicklib/src/libraries/core/DynLib.h
r8071 r8073 110 110 111 111 protected: 112 112 113 /// Handle to the loaded library. 113 114 DYNLIB_HANDLE m_hInst; -
code/branches/kicklib/src/libraries/core/GUIManager.cc
r8071 r8073 369 369 false | False | True | Dontcare 370 370 */ 371 372 #ifdef ORXONOX_PLATFORM_APPLE 373 // There is no non exclusive mode on OS X yet 374 state->setMouseExclusive(TriBool::True); 375 #else 371 376 if (showCursor == TriBool::Dontcare) 372 377 state->setMouseExclusive(TriBool::Dontcare); … … 375 380 else 376 381 state->setMouseExclusive(TriBool::False); 382 #endif 377 383 378 384 if (showCursor == TriBool::True) … … 436 442 void GUIManager::buttonPressed(MouseButtonCode::ByEnum id) 437 443 { 438 //guiSystem_->injectMouseButtonDown(convertButton(id));439 444 this->protectedCall(boost::bind(&CEGUI::System::injectMouseButtonDown, _1, convertButton(id))); 440 445 } -
code/branches/kicklib/src/libraries/core/GraphicsManager.cc
r8071 r8073 269 269 270 270 Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get()); 271 271 272 272 // HACK 273 273 #ifdef ORXONOX_PLATFORM_APPLE … … 278 278 #endif 279 279 // End of HACK 280 280 281 281 // create a full screen default viewport 282 282 // Note: This may throw when adding a viewport with an existing z-order! -
code/branches/kicklib/src/libraries/core/PathConfig.cc
r8071 r8073 208 208 #ifdef ORXONOX_PLATFORM_UNIX 209 209 char* userDataPathPtr(getenv("HOME")); 210 #elif ORXONOX_PLATFORM_APPLE211 char* userDataPathPtr(getenv("HOME"));212 210 #else 213 211 char* userDataPathPtr(getenv("APPDATA")); -
code/branches/kicklib/src/orxonox/MoodManager.cc
r8071 r8073 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path a= "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path a))52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(path)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) -
code/branches/kicklib/src/orxonox/sound/BaseSound.cc
r8071 r8073 31 31 #include <cassert> 32 32 #include <vector> 33 34 #ifdef ORXONOX_PLATFORM_APPLE35 #include "openal/al.h"36 #else37 33 #include <al.h> 38 #endif39 34 40 35 #include "util/Math.h" -
code/branches/kicklib/src/orxonox/sound/SoundBuffer.cc
r8071 r8073 30 30 #include "SoundBuffer.h" 31 31 32 #if defined(ORXONOX_PLATFORM_APPLE) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 37 33 #include <vorbis/vorbisfile.h> 38 34 -
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r8071 r8073 31 31 #include "SoundManager.h" 32 32 33 #if defined(__APPLE__)34 #include <ALUT/alut.h>35 #else36 #include <AL/alut.h>37 #endif38 33 #include <utility> 34 #include <alut.h> 39 35 #include <loki/ScopeGuard.h> 40 36 … … 85 81 SetConfigValue(bDisableSound_, false); 86 82 if (bDisableSound_) 87 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 83 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 88 84 if (!alutInitWithoutContext(NULL, NULL)) 89 85 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 133 129 GameMode::setPlaysSound(true); 134 130 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 135 131 136 132 // Get some information about the sound 137 133 if (const char* version = alGetString(AL_VERSION)) 138 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 134 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 139 135 if (const char* vendor = alGetString(AL_VENDOR)) 140 136 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl; -
code/branches/kicklib/src/orxonox/sound/SoundStreamer.cc
r8071 r8073 27 27 #include "SoundStreamer.h" 28 28 29 #ifdef ORXONOX_PLATFORM_APPLE30 #include "openal/al.h"31 #else32 29 #include <al.h> 33 #endif34 35 30 #include <vorbis/vorbisfile.h> 36 31 #include "SoundManager.h" -
code/branches/kicklib/src/orxonox/sound/WorldSound.cc
r8071 r8073 30 30 #include "WorldSound.h" 31 31 32 #if defined(__APPLE__) 33 #include <ALUT/alut.h> 34 #else 35 #include <AL/alut.h> 36 #endif 32 #include <alut.h> 33 37 34 #include "util/Math.h" 38 35 #include "core/CoreIncludes.h"
Note: See TracChangeset
for help on using the changeset viewer.