Jelajahi Sumber

Combined Q-Gears and V-Gears repositories.

Iñigo Valentin 3 tahun lalu
induk
melakukan
2b7397f9ba
100 mengubah file dengan 3281 tambahan dan 5892 penghapusan
  1. 4 0
      .gitignore
  2. 0 15
      AUTHORS.md
  3. 1 13
      CIBuild/linux/dependencies.sh
  4. 5 5
      CIBuild/osx/dependencies.sh
  5. 2 2
      CIBuild/windows/build.bat
  6. 2 2
      CIBuild/windows/build64.bat
  7. 3 0
      CMake/FindOggVorbis.cmake
  8. 189 188
      CMakeLists.txt
  9. 1 1
      COPYING.txt
  10. 2734 0
      Doxyfile
  11. 26 29
      PlugIns/Data/CMakeLists.txt
  12. 0 72
      PlugIns/Data/include/QGearsDataPlugin.h
  13. 96 0
      PlugIns/Data/include/VGearsDataPlugin.h
  14. 0 0
      PlugIns/Data/misc/VGearsData.def
  15. 0 83
      PlugIns/Data/src/QGearsDataPlugin.cpp
  16. 0 53
      PlugIns/Data/src/QGearsDataPluginDll.cpp
  17. 52 0
      PlugIns/Data/src/VGearsDataPlugin.cpp
  18. 37 0
      PlugIns/Data/src/VGearsDataPluginDll.cpp
  19. 74 99
      PlugIns/Data/test/tex_file_info.cpp
  20. 55 55
      PlugIns/Data/test/tex_file_test.cpp
  21. 0 405
      QGearsMain/CMakeLists.txt
  22. 0 25
      QGearsMain/include/LuaIncludes.h
  23. 0 15
      QGearsMain/include/QGearsGameState.h
  24. 0 44
      QGearsMain/include/QGearsPrerequisites.h
  25. 0 38
      QGearsMain/include/common/File.h
  26. 0 17
      QGearsMain/include/common/FileSystem.h
  27. 0 30
      QGearsMain/include/common/LzsFile.h
  28. 0 84
      QGearsMain/include/common/QGearsApplication.h
  29. 0 105
      QGearsMain/include/common/QGearsManualObject.h
  30. 0 61
      QGearsMain/include/common/QGearsResource.h
  31. 0 42
      QGearsMain/include/common/QGearsStringUtil.h
  32. 0 71
      QGearsMain/include/common/TypeDefine.h
  33. 0 17
      QGearsMain/include/common/make_unique.h
  34. 0 12
      QGearsMain/include/core/Assert.h
  35. 0 99
      QGearsMain/include/core/AudioManager.h
  36. 0 158
      QGearsMain/include/core/Background2D.h
  37. 0 62
      QGearsMain/include/core/Background2DAnimation.h
  38. 0 56
      QGearsMain/include/core/CameraManager.h
  39. 0 36
      QGearsMain/include/core/CameraManagerCommands.h
  40. 0 45
      QGearsMain/include/core/ConfigCmd.h
  41. 0 38
      QGearsMain/include/core/ConfigCmdManager.h
  42. 0 439
      QGearsMain/include/core/ConfigCmdManagerCommands.h
  43. 0 16
      QGearsMain/include/core/ConfigFile.h
  44. 0 54
      QGearsMain/include/core/ConfigVar.h
  45. 0 26
      QGearsMain/include/core/ConfigVarManager.h
  46. 0 80
      QGearsMain/include/core/Console.h
  47. 0 98
      QGearsMain/include/core/DebugDraw.h
  48. 0 125
      QGearsMain/include/core/DialogsManager.h
  49. 0 282
      QGearsMain/include/core/Entity.h
  50. 0 21
      QGearsMain/include/core/EntityCollision.h
  51. 0 21
      QGearsMain/include/core/EntityDirection.h
  52. 0 91
      QGearsMain/include/core/EntityManager.h
  53. 0 35
      QGearsMain/include/core/EntityModel.h
  54. 0 34
      QGearsMain/include/core/EntityPoint.h
  55. 0 44
      QGearsMain/include/core/EntityTrigger.h
  56. 0 53
      QGearsMain/include/core/Event.h
  57. 0 42
      QGearsMain/include/core/GameFrameListner.h
  58. 0 73
      QGearsMain/include/core/InputManager.h
  59. 0 92
      QGearsMain/include/core/InputManagerCommands.h
  60. 0 23
      QGearsMain/include/core/Logger.h
  61. 0 37
      QGearsMain/include/core/Module.h
  62. 0 127
      QGearsMain/include/core/ScriptManager.h
  63. 0 257
      QGearsMain/include/core/ScriptManagerBinds.h
  64. 0 39
      QGearsMain/include/core/ScriptManagerCommands.h
  65. 0 49
      QGearsMain/include/core/TextManager.h
  66. 0 36
      QGearsMain/include/core/TextManagerCommands.h
  67. 0 34
      QGearsMain/include/core/Timer.h
  68. 0 87
      QGearsMain/include/core/UiAnimation.h
  69. 0 54
      QGearsMain/include/core/UiFont.h
  70. 0 50
      QGearsMain/include/core/UiManager.h
  71. 0 45
      QGearsMain/include/core/UiSprite.h
  72. 0 152
      QGearsMain/include/core/UiTextArea.h
  73. 0 167
      QGearsMain/include/core/UiWidget.h
  74. 0 53
      QGearsMain/include/core/Utilites.h
  75. 0 60
      QGearsMain/include/core/Walkmesh.h
  76. 0 19
      QGearsMain/include/core/XmlBackground2DFile.h
  77. 0 42
      QGearsMain/include/core/XmlFile.h
  78. 0 20
      QGearsMain/include/core/XmlFontFile.h
  79. 0 19
      QGearsMain/include/core/XmlFontsFile.h
  80. 0 20
      QGearsMain/include/core/XmlMapFile.h
  81. 0 22
      QGearsMain/include/core/XmlMapsFile.h
  82. 0 19
      QGearsMain/include/core/XmlMusicsFile.h
  83. 0 19
      QGearsMain/include/core/XmlPrototypesFile.h
  84. 0 21
      QGearsMain/include/core/XmlScreenFile.h
  85. 0 19
      QGearsMain/include/core/XmlScreensFile.h
  86. 0 19
      QGearsMain/include/core/XmlScriptsFile.h
  87. 0 19
      QGearsMain/include/core/XmlTextFile.h
  88. 0 19
      QGearsMain/include/core/XmlTextsFile.h
  89. 0 19
      QGearsMain/include/core/XmlWalkmeshFile.h
  90. 0 60
      QGearsMain/include/core/particles/Particle.h
  91. 0 13
      QGearsMain/include/core/particles/ParticleAdditionalData.h
  92. 0 74
      QGearsMain/include/core/particles/ParticleEmitter.h
  93. 0 34
      QGearsMain/include/core/particles/ParticleEmitterDictionary.h
  94. 0 17
      QGearsMain/include/core/particles/ParticleEmitterTranslator.h
  95. 0 140
      QGearsMain/include/core/particles/ParticlePool.h
  96. 0 150
      QGearsMain/include/core/particles/ParticlePoolMap.h
  97. 0 43
      QGearsMain/include/core/particles/ParticleRenderer.h
  98. 0 38
      QGearsMain/include/core/particles/ParticleRendererFactory.h
  99. 0 17
      QGearsMain/include/core/particles/ParticleRendererTranslator.h
  100. 0 37
      QGearsMain/include/core/particles/ParticleSystem.h

+ 4 - 0
.gitignore

@@ -17,4 +17,8 @@ output/share
 output/include
 output/lib
 CMakeLists.txt.user
+doc/FFVII/RAW/
+.settings/
+.project
+.cproject
 

+ 0 - 15
AUTHORS.md

@@ -1,15 +0,0 @@
-# Authors
-
-Admin@microsof-be3e4f.mshome.net <Admin@microsof-be3e4f.mshome.net>
-Admin@microsof-be3e4f <Admin@microsof-be3e4f>
-Admin@MICROSOF-BE3E4F <Admin@MICROSOF-BE3E4F>
-andrei_antonov@AKARI.targem.local <andrei_antonov@AKARI.targem.local>
-andrei_antonov@test.targem.local <andrei_antonov@test.targem.local>
-bakari@test.targem.local <bakari@test.targem.local>
-bdulaney88 <draygera@gmail.com>
-cloudef <none@none>
-Gennadiy Brich <gennadiy.brich@gmail.com>
-paul <paul@desktop>
-paulsapps <github@paulsapps.com>
-sithlord48 <sithlord48@gmail.com>
-Tobias Peters <tobias.peters@kreativeffekt.at>

+ 1 - 13
CIBuild/linux/dependencies.sh

@@ -1,13 +1 @@
-sudo apt-get install boost1.55
-sudo apt-get install libvorbis-dev
-sudo apt-get install libalut-dev
-sudo apt-get install libfreetype6-dev
-sudo apt-get install libfreeimage-dev
-sudo apt-get install zlib1g-dev
-sudo apt-get install libzzip-dev
-sudo apt-get install libois-dev
-sudo apt-get install libglu-dev
-sudo apt-get install libqt4-dev
-sudo apt-get install libpng
-wget https://github.com/paulsapps/Ogre1.9/releases/download/1.9.0/ogre-build_1.9.0-1_amd64.deb
-sudo dpkg -i ogre-build_1.9.0-1_amd64.deb
+sudo apt-get install libogre-1.12-dev libtinyxml-dev boost1.55 libvorbis-dev libalut-dev libfreetype6-dev libfreeimage-dev zlib1g-dev libzzip-dev libois-dev libglu-dev libqt5core5a libqt5widgets5 libpng

+ 5 - 5
CIBuild/osx/dependencies.sh

@@ -13,12 +13,12 @@ unzip OgreDependencies_OSX_libc._20130610.zip >> extract.log
 echo "Setup env vars"
 #export OGRE_HOME="${PWD}/../OgreSDK"
 #export OGRE_SDK="${PWD}/../OgreSDK"
-export OGRE_HOME="/Users/travis/build/q-gears/q-gears/OgreSDK"
-export OGRE_SDK="/Users/travis/build/q-gears/q-gears/OgreSDK"
-export OIS_HOME="/Users/travis/build/q-gears/q-gears/Dependencies"
+export OGRE_HOME="/Users/travis/build/v-gears/v-gears/OgreSDK"
+export OGRE_SDK="/Users/travis/build/v-gears/v-gears/OgreSDK"
+export OIS_HOME="/Users/travis/build/v-gears/v-gears/Dependencies"
 
-# /Users/travis/build/q-gears/q-gears/Dependencies;
-# /Users/travis/build/q-gears/q-gears/../Dependencies
+# /Users/travis/build/v-gears/v-gears/Dependencies;
+# /Users/travis/build/v-gears/v-gears/../Dependencies
 
 echo "Env vars are $OGRE_SDK and $OIS_HOME"
 # Overwrite broken symlink with actual file

+ 2 - 2
CIBuild/windows/build.bat

@@ -1,4 +1,4 @@
-msbuild /m QGears.sln /p:Configuration=Release
+msbuild /m VGears.sln /p:Configuration=Release
 if %errorlevel% neq 0 exit /b %errorlevel%
 
 cpack -C "Release"
@@ -15,5 +15,5 @@ cd %CURRENT%
 mkdir windows
 cd .. 
 dir
-move q-gears\build\*.msi %CURRENT%\windows
+move v-gears\build\*.msi %CURRENT%\windows
 upload %CURRENT%

+ 2 - 2
CIBuild/windows/build64.bat

@@ -1,4 +1,4 @@
-msbuild /m QGears.sln /p:Configuration=Release
+msbuild /m VGears.sln /p:Configuration=Release
 if %errorlevel% neq 0 exit /b %errorlevel%
 
 cpack -C "Release"
@@ -15,7 +15,7 @@ cd %CURRENT%
 mkdir windows
 cd .. 
 dir
-move q-gears\build\*.msi %CURRENT%\windows
+move v-gears\build\*.msi %CURRENT%\windows
 upload %CURRENT%
 
 

+ 3 - 0
CMake/FindOggVorbis.cmake

@@ -26,6 +26,9 @@ find_library(VORBIS_LIBRARY NAMES vorbis)
 find_library(VORBISFILE_LIBRARY NAMES vorbisfile)
 find_library(VORBISENC_LIBRARY NAMES vorbisenc)
 
+message(VORBIS_INCLUDE_DIR: ${VORBIS_INCLUDE_DIR})
+message(VORBIS_LIBRARY: ${VORBIS_LIBRARY})
+
 mark_as_advanced(VORBIS_INCLUDE_DIR OGG_INCLUDE_DIR
                  OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY VORBISENC_LIBRARY)
 

+ 189 - 188
CMakeLists.txt

@@ -1,70 +1,73 @@
-cmake_minimum_required(VERSION 2.6)
-project(QGears)
-set (CMAKE_PACKAGE_ICON q-gears.png)
-#set( CMAKE_VERBOSE_MAKEFILE on )
+cmake_minimum_required(VERSION 2.8)
 
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/dependencies/cotire/CMake")
+# on / off for verbose build.
+set(CMAKE_VERBOSE_MAKEFILE off)
+
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/lib/cotire/CMake")
 include(cotire)
 
-# The version number.
-set(QGears_VERSION_MAJOR 0)
-set(QGears_VERSION_MINOR 22)
-set(QGears_VERSION_PATCH 0)
+# Project Information.
+project(V-Gears)
+set(CMAKE_PACKAGE_ICON v-gears.png)
+set(VGears_VERSION__MAJOR 0)
+set(VGears_VERSION__MINOR 1)
+set(VGears_VERSION__PATCH 0)
 
 if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
-  # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
-  # differentiation between debug and release builds.
-  set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None (CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
-  message("CMAKE_BUILD_TYPE was empty defaulting to Release")
-endif ()
+    # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
+    # differentiation between debug and release builds.
+    set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None (CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
+    message("CMAKE_BUILD_TYPE was empty defaulting to Release")
+endif()
 
 message("CMAKE_BUILD_TYPE is ${CMAKE_BUILD_TYPE} CMAKE_BINARY_DIR is ${CMAKE_BINARY_DIR}")
 
-set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin_release)
-set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin_release)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin_release)
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
 
 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin_debug)
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin_debug)
 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin_debug)
 
-# Generate header containing window title/version information
-set(QGEARS_VERSION "Q-Gears v${QGears_VERSION_MAJOR}.${QGears_VERSION_MINOR}.${QGears_VERSION_PATCH} (pre-alpha walk carefully)")
+# Generate header containing window title/version information.
+set(VGEARS_VERSION "V-Gears v${VGears_VERSION__MAJOR}.${VGears_VERSION__MINOR}.${VGears_VERSION__PATCH}")
 configure_file(configure_version_file.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/configure_version_file.cmake @ONLY)
 
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qgears_version.h
-  COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/configure_version_file.cmake
-  DEPENDS
-    ${CMAKE_CURRENT_BINARY_DIR}/configure_version_file.cmake
-    ${CMAKE_CURRENT_SOURCE_DIR}/QGearsMain/include/qgears_version.h.in
-  COMMENT "Configuring qgears_version.h"
-  VERBATIM)
-add_custom_target(configure_qgears_version ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/qgears_version.h)
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vgears_version.h
+    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/configure_version_file.cmake
+    DEPENDS
+        ${CMAKE_CURRENT_BINARY_DIR}/configure_version_file.cmake
+        ${CMAKE_CURRENT_SOURCE_DIR}/V-Gears/include/vgears_version.h.in
+    COMMENT "Configuring vgears_version.h"
+    VERBATIM
+)
+add_custom_target(configure_vgears_version ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vgears_version.h)
 
-# Enable Visual Studio solution "folders"
-SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON) 
+# Enable Visual Studio solution "folders".
+SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
 
 #if (APPLE)
-#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
-#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
-#set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32")
+    #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
+    #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
+    #set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32")
 #endif()
 
 set(CMAKE_FRAMEWORK_PATH
-      ${CMAKE_FRAMEWORK_PATH}
-      ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/lib/macosx/Release
-      ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/lib/macosx/Debug
-   )
+    ${CMAKE_FRAMEWORK_PATH}
+    ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/lib/macosx/Release
+    ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/lib/macosx/Debug
+)
 
 set(OGRE_FRAMEWORK_INCLUDES
-      ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/include
+    ${CMAKE_CURRENT_SOURCE_DIR}/OgreSDK/include
 )
 
-option(QGears_BUILD_PLUGINS     "Build the plugins"     TRUE)
-option(QGears_BUILD_UTILITIES   "Build the utilities"   TRUE)
-option(QGears_BUILD_TESTS       "Build the unit tests"  TRUE)
-option(QGears_MULTITHREADING    "Enable multithreading" FALSE)
-option(QGears_SOUND             "Enable Sound"          FALSE)
+option(VGears_BUILD_PLUGINS "Build the plugins" TRUE)
+option(VGears_BUILD_UTILITIES "Build the V-Gears-Installer" TRUE)
+option(VGears_BUILD_TESTS "Build the unit tests" FALSE)
+option(VGears_MULTITHREADING "Enable multithreading" FALSE)
+option(VGears_SOUND "Enable Sound" TRUE)
 
 find_path(OGRE_CMAKE_MODULE_PATH FindOGRE.cmake
     HINTS
@@ -80,101 +83,106 @@ else()
     set(CMAKE_MODULE_PATH "${OGRE_CMAKE_MODULE_PATH};${CMAKE_MODULE_PATH}")
 endif()
 
+set(VGears_SOURCE_DIR ${CMAKE_SOURCE_DIR})
+
+message("VGears_SOURCE_DIR ${VGears_SOURCE_DIR}")
+message("VGears_SOURCE_DIR ${VGears_SOURCE_DIR}")
+
 set(CMAKE_MODULE_PATH "${OGRE_CMAKE_MODULE_PATH};${CMAKE_MODULE_PATH}")
 set(CMAKE_MODULE_PATH 
-  "${CMAKE_MODULE_PATH}"
-  "${QGears_SOURCE_DIR}/CMake" 
+    "${CMAKE_MODULE_PATH}"
+    "${CMAKE_SOURCE_DIR}/CMake"
 )
 
 set(CMAKE_DEBUG_POSTFIX "_d")
 
 if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
-  set(CMAKE_INSTALL_PREFIX
-    "${QGears_SOURCE_DIR}/output" CACHE PATH "Q-Gears install prefix" FORCE
-  )
+    set(CMAKE_INSTALL_PREFIX
+        "${VGears_SOURCE_DIR}/output" CACHE PATH "V-Gears install prefix" FORCE
+    )
 endif()
 
-find_package(Qt4 REQUIRED)
+find_package(Qt5Widgets REQUIRED)
 find_package(ZLIB REQUIRED)
 find_package(OGRE REQUIRED)
 find_package(OIS REQUIRED)
 
 
-if(NOT OIS_FOUND)
-        message(SEND_ERROR "Failed to find OIS.")
-endif()
+#if(NOT OIS_FOUND)
+    #message(SEND_ERROR "Failed to find OIS.")
+#endif()
 
 # Find Boost
-if (NOT OGRE_BUILD_PLATFORM_IPHONE)
-        if (WIN32)
-                set(Boost_USE_STATIC_LIBS TRUE)
-        else ()
-                # Statically linking boost to a dynamic Ogre build doesn't work on Linux 64bit
-                set(Boost_USE_STATIC_LIBS ${OGRE_STATIC})
-        endif ()
-        if (MINGW)
-                # this is probably a bug in CMake: the boost find module tries to look for
-                # boost libraries with name libboost_*, but CMake already prefixes library
-                # search names with "lib". This is the workaround.
-                set(CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} "")
-        endif ()
-
-        set(Boost_ADDITIONAL_VERSIONS "1.55" "1.55.0" "1.53" "1.53.0" "1.52" "1.52.0" "1.51" "1.51.0" "1.50" "1.50.0" "1.49" "1.49.0" "1.48" "1.48.0" "1.47" "1.47.0" "1.46" "1.46.0" "1.45" "1.45.0" "1.44" "1.44.0" "1.42" "1.42.0" "1.41.0" "1.41" "1.40.0" "1.40")
-        # Components that need linking (NB does not include header-only components like bind)
-        set(OGRE_BOOST_COMPONENTS thread date_time)
+if(NOT OGRE_BUILD_PLATFORM_IPHONE)
+    if(WIN32)
+        set(Boost_USE_STATIC_LIBS TRUE)
+    else()
+        # Statically linking boost to a dynamic Ogre build doesn't work on Linux 64bit
+        set(Boost_USE_STATIC_LIBS ${OGRE_STATIC})
+    endif ()
+    if(MINGW)
+        # This is probably a bug in CMake: the boost find module tries to look for
+        # boost libraries with name libboost_*, but CMake already prefixes library
+        # search names with "lib". This is the workaround.
+        set(CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} "")
+    endif ()
+
+    set(Boost_ADDITIONAL_VERSIONS "1.55" "1.55.0" "1.53" "1.53.0" "1.52" "1.52.0" "1.51" "1.51.0" "1.50" "1.50.0" "1.49" "1.49.0" "1.48" "1.48.0" "1.47" "1.47.0" "1.46" "1.46.0" "1.45" "1.45.0" "1.44" "1.44.0" "1.42" "1.42.0" "1.41.0" "1.41" "1.40.0" "1.40")
+    # Components that need linking (NB does not include header-only components like bind)
+    set(OGRE_BOOST_COMPONENTS thread date_time)
+    find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
+    if (NOT Boost_FOUND)
+        set(Boost_USE_STATIC_LIBS NOT ${Boost_USE_STATIC_LIBS})
         find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
-        if (NOT Boost_FOUND)
-                set(Boost_USE_STATIC_LIBS NOT ${Boost_USE_STATIC_LIBS})
-                find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
-        endif()
-
-        if(Boost_FOUND AND Boost_VERSION GREATER 104900)
-                set(OGRE_BOOST_COMPONENTS thread date_time system chrono)
-                find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
-        endif()
+    endif()
 
-        # Set up referencing of Boost
-        include_directories(${Boost_INCLUDE_DIR})
-    if (NOT APPLE)        
-    add_definitions(-DBOOST_ALL_NO_LIB)
+    if(Boost_FOUND AND Boost_VERSION GREATER 104900)
+        set(OGRE_BOOST_COMPONENTS thread date_time system chrono)
+        find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
     endif()
 
-        set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${Boost_LIBRARIES})
+    # Set up referencing of Boost
+    include_directories(${Boost_INCLUDE_DIR})
+    if (NOT APPLE)
+        add_definitions(-DBOOST_ALL_NO_LIB)
+    endif()
 
-        find_package(Boost COMPONENTS program_options filesystem QUIET)
-        set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${Boost_LIBRARIES})
-        set(QGears_LIBRARIES ${OGRE_LIBRARIES})
-        
-        if(QGears_SOUND)
-            find_package(OpenAL REQUIRED)
-            find_package(OggVorbis REQUIRED)
-            add_definitions(-DQGears_SOUND)
-            set(QGears_LIBRARIES
-                ${QGears_LIBRARIES}
-                ${OPENAL_LIBRARY}
-                ${OGGVORBIS_LIBRARIES}
-            )
-        endif()
+    set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${Boost_LIBRARIES})
+
+    find_package(Boost COMPONENTS program_options filesystem QUIET)
+    set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${Boost_LIBRARIES})
+    set(VGears_LIBRARIES ${OGRE_LIBRARIES})
+
+    if(VGears_SOUND)
+        find_package(OpenAL REQUIRED)
+        find_package(OggVorbis REQUIRED)
+        add_definitions(-DVGears_SOUND)
+        set(VGears_LIBRARIES
+            ${VGears_LIBRARIES}
+            ${OPENAL_LIBRARY}
+            ${OGGVORBIS_LIBRARIES}
+        )
+    endif()
 
-        if(QGears_MULTITHREADING)
-            # Find Threads
-            find_package (Threads REQUIRED)
-            set(QGears_LIBRARIES
-                ${QGears_LIBRARIES}
-                ${CMAKE_THREAD_LIBS_INIT}
-            )
-        endif()
+    if(VGears_MULTITHREADING)
+        # Find Threads
+        find_package (Threads REQUIRED)
+        set(VGears_LIBRARIES
+            ${VGears_LIBRARIES}
+            ${CMAKE_THREAD_LIBS_INIT}
+        )
+    endif()
 
-        if(QGears_BUILD_TESTS)
-        message(STATUS "Looking for boost unit test..")
-            find_package(Boost COMPONENTS unit_test_framework REQUIRED)
-            set(QGears_TEST_LIBRARIES
-                ${OGRE_LIBRARIES}
-                ${Boost_LIBRARIES}
-            )
-            message(STATUS "Test libs = ${QGears_TEST_LIBRARIES}")
-            # enable CTest
-            enable_testing()
+    if(VGears_BUILD_TESTS)
+        #message(STATUS "Looking for boost unit test..")
+        find_package(Boost COMPONENTS unit_test_framework REQUIRED)
+        set(VGears_TEST_LIBRARIES
+            ${OGRE_LIBRARIES}
+            ${Boost_LIBRARIES}
+        )
+        #message(STATUS "Test libs = ${VGears_TEST_LIBRARIES}")
+        # Enable CTest.
+        enable_testing()
         endif()
 endif()
 
@@ -183,33 +191,34 @@ set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${OGRE_Overlay_LIBRARIES})
 find_package(Boost COMPONENTS unit_test_framework REQUIRED)
 
 if (Boost_LIBRARIES STREQUAL "")
-message(SEND_ERROR "Boost_LIBRARIES is not set")
+    message(SEND_ERROR "Boost_LIBRARIES is not set")
 endif()
 
-set(QGears_INCLUDE_DIRS
-    ${QGears_INCLUDE_DIRS}
+set(VGears_INCLUDE_DIRS
+    ${VGears_INCLUDE_DIRS}
+    ${CMAKE_CURRENT_SOURCE_DIR}/V-Gears/include/
     ${OIS_INCLUDE_DIRS}
-    ${OGRE_INCLUDE_DIRS}
     ${OGRE_Overlay_INCLUDE_DIRS}
     ${OGRE_SAMPLES_INCLUDEPATH}
-    ${CMAKE_CURRENT_SOURCE_DIR}/dependencies
-    ${CMAKE_CURRENT_BINARY_DIR}/dependencies/luajit
-    ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/luajit/src
-    ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/luabind
-    ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/luabind/luabind/detail
-    ${CMAKE_CURRENT_SOURCE_DIR}/dependencies/tinyxml
-	${CMAKE_CURRENT_SOURCE_DIR}/dependencies/SUDM
+    ${CMAKE_CURRENT_SOURCE_DIR}/lib
+    ${CMAKE_CURRENT_BINARY_DIR}/lib/luajit
+    ${CMAKE_CURRENT_SOURCE_DIR}/lib/luajit/src
+    ${CMAKE_CURRENT_SOURCE_DIR}/lib/luabind
+    ${CMAKE_CURRENT_SOURCE_DIR}/lib/luabind/luabind/detail
+    ${CMAKE_CURRENT_SOURCE_DIR}/lib/tinyxml
 )
 
-
+# C++20
+# TODO: Try to remove PIC
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fPIC")
 if (MSVC)
-# Build cpp files on all cores, up virtual mem for PCH's as cotire really makes the compiler scream
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Zm193")
-# Shut up about insecure functions, as this is cross platform code we can't use the Win32 specifc functions
-add_definitions( -D_CRT_SECURE_NO_WARNINGS )
+    # Build cpp files on all cores, up virtual mem for PCH's as cotire really makes the compiler scream
+    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Zm193")
+    # Shut up about insecure functions, as this is cross platform code we can't use the Win32 specifc functions
+    add_definitions( -D_CRT_SECURE_NO_WARNINGS )
 else()
-# Enable C++11, you may need to use -std=c++0x if using an older gcc compiler
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
+    # Enable C++11, you may need to use -std=c++0x if using an older gcc compiler
+    #SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC")
 endif()
 
 if (UNIX AND $ENV{COVERAGE}==1)
@@ -218,20 +227,23 @@ if (UNIX AND $ENV{COVERAGE}==1)
       SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") # enabling coverage
 endif()
 
+#DEBUG, no optimizations
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -rdynamic -O0")
+
 add_definitions(-DTIXML_USE_STL)
-add_subdirectory(dependencies)
-add_subdirectory(QGearsMain)
-add_subdirectory(SupportedGames)
+add_subdirectory(lib)
+add_subdirectory(V-Gears)
+#add_subdirectory(SupportedGames)
 
-if(QGears_BUILD_PLUGINS)
+if(VGears_BUILD_PLUGINS)
     add_subdirectory(PlugIns)
 endif()
 
-if(QGears_BUILD_UTILITIES)
-    add_subdirectory(utilities)
+if(VGears_BUILD_UTILITIES)
+    add_subdirectory(V-Gears-Installer)
 endif()
 
-if(QGears_BUILD_TESTS)
+if(VGears_BUILD_TESTS)
     add_subdirectory(Tests)
 endif()
 
@@ -241,10 +253,10 @@ SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/output)
 # DO NOT include on win32 - causes CRT dlls to be included
 #INCLUDE(InstallRequiredSystemLibraries)
 
-set(CPACK_PACKAGE_NAME "q-gears")
-SET(CPACK_PACKAGE_VERSION ${QGears_VERSION_MAJOR}.${QGears_VERSION_MINOR}.${QGears_VERSION_PATCH})
+set(CPACK_PACKAGE_NAME "v-gears")
+SET(CPACK_PACKAGE_VERSION ${VGears_VERSION__MAJOR}.${VGears_VERSION__MINOR}.${VGears_VERSION__PATCH})
 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "A Free Final Fantasy VII Engine")
-SET(CPACK_PACKAGE_VENDOR "QGears team")
+SET(CPACK_PACKAGE_VENDOR "V-Gears team")
 # TODO: Need to set these up properly, installing build instructions is a bit strange :)
 SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING.txt")
 #SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/readme.md")
@@ -254,16 +266,14 @@ MESSAGE( STATUS "BOOST_ROOT:         " ${BOOST_ROOT} )
 
 INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/output/field_models_and_animation_metadata.xml" DESTINATION ".")
 
-#OS SPECIFIC 
+#OS SPECIFIC
 if(WIN32)
     # On Windows generate MSI packages
     SET(CPACK_GENERATOR "WIX")
     SET(CPACK_WIX_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/wix.template.in")
     SET(CPACK_WIX_UPGRADE_GUID 8fbb893f-5622-4f6d-a7f6-c221f7be5d52)
-
     # TODO: Set MSI banner image, copyright info etc, also include startmenu/desktop shortcuts
     #set the name of the installer default formating is name-version-os
-
     # If empty assume release
     if ("${CMAKE_BUILD_TYPE}" STREQUAL "" OR "${CMAKE_BUILD_TYPE}" STREQUAL "Release")
         message("RELEASE installer build")
@@ -314,25 +324,25 @@ elseif(APPLE)
     install(FILES ${OSX_BIN_DIR}/liblua.dylib DESTINATION ./)
 elseif(UNIX)
     # On Linux generate TAR.GZ,DEB and RPM packages
-    #Find out what architecture are we running on and set the package architecture 
+    # Find out what architecture are we running on and set the package architecture 
     
-    # set the generic files needing to be installed
-    install( FILES ${PROJECT_SOURCE_DIR}/q-gears.png DESTINATION ./share/pixmaps/ )
-    install( FILES ${PROJECT_SOURCE_DIR}/q-gears.desktop DESTINATION ./share/applications/ )
-    install( FILES ${PROJECT_SOURCE_DIR}/debian/menu DESTINATION share/menu/ RENAME q-gears )
-    install( FILES ${PROJECT_SOURCE_DIR}/output/plugins.cfg_linux DESTINATION share/q-gears/ RENAME plugins.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
-    install( FILES ${PROJECT_SOURCE_DIR}/output/resources.cfg_linux DESTINATION share/q-gears/ RENAME resources.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
-    install( FILES ${PROJECT_SOURCE_DIR}/output/q-gears.cfg_linux DESTINATION share/q-gears/ RENAME q-gears.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
+    # Set the generic files needing to be installed
+    install(FILES ${PROJECT_SOURCE_DIR}/v-gears.png DESTINATION ./share/pixmaps/ )
+    install(FILES ${PROJECT_SOURCE_DIR}/v-gears.desktop DESTINATION ./share/applications/ )
+    install(FILES ${PROJECT_SOURCE_DIR}/debian/menu DESTINATION share/menu/ RENAME v-gears )
+    install(FILES ${PROJECT_SOURCE_DIR}/output/plugins.cfg_linux DESTINATION share/v-gears/ RENAME plugins.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
+    install(FILES ${PROJECT_SOURCE_DIR}/output/resources.cfg_linux DESTINATION share/v-gears/ RENAME resources.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
+    install(FILES ${PROJECT_SOURCE_DIR}/output/v-gears.cfg_linux DESTINATION share/v-gears/ RENAME v-gears.cfg PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ GROUP_WRITE WORLD_WRITE WORLD_READ)
         
     if(EXISTS "/usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0")
-      install( FILES /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0 DESTINATION lib/q-gears/plugins/ )
+        install(FILES /usr/lib/x86_64-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0 DESTINATION lib/v-gears/plugins/ )
     elseif(EXISTS "/usr/lib/i386-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0")
-      install( FILES /usr/lib/i386-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0 DESTINATION lib/q-gears/plugins/ )
+        install(FILES /usr/lib/i386-linux-gnu/OGRE-1.9.0/RenderSystem_GL.so.1.9.0 DESTINATION lib/v-gears/plugins/ )
     endif()
         
     SET(CPACK_SOURCE_GENERATOR "TGZ;TZ")
     SET(CPACK_GENERATOR "TGZ")
-    #detect Distro Family DEB , RPM 
+    # Detect Distro Family DEB , RPM.
     if(EXISTS "/etc/lsb-release")
         set(DistroType DEB)
     elseif(EXISTS "/etc/debian_release")
@@ -343,19 +353,19 @@ elseif(UNIX)
     message(STATUS "Distro Detected: ${DistroType} ")
 
     if(DistroType MATCHES "DEB")
-      # Setup DEB package properties
-      MESSAGE(STATUS "DEB ADDED TO GENERATION LIST")
-      SET(CPACK_GENERATOR "${CPACK_GENERATOR};DEB")
+        # Setup DEB package properties
+        MESSAGE(STATUS "DEB ADDED TO GENERATION LIST")
+        SET(CPACK_GENERATOR "${CPACK_GENERATOR};DEB")
     endif()
     if(EXISTS "/usr/bin/rpmbuild")
-      MESSAGE(STATUS "RPM ADDED TO GENERATION LIST (RPM IS DISABLED IN CMAKELISTS)")
-    #  Uncomment to allow for rpm files to be built.   
-    #  SET(CPACK_GENERATOR "${CPACK_GENERATOR};RPM")
+        MESSAGE(STATUS "RPM ADDED TO GENERATION LIST (RPM IS DISABLED IN CMAKELISTS)")
+        # Uncomment to allow for rpm files to be built.   
+        # SET(CPACK_GENERATOR "${CPACK_GENERATOR};RPM")
     endif()
-    
+
     # Setup DEB package properties
-    SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Chris Rizzitello <sithlord48@gmail.com>")
-    
+    # TODO
+    SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Iñigo Valentin <i@v.com>")
     
     #Set DEBIAN INFO
     SET(CPACK_DEBIAN_PACKAGE_SECTION games)
@@ -363,35 +373,26 @@ elseif(UNIX)
     #SET(CPACK_PACKAGE_EXECUTABLE )
     EXECUTE_PROCESS(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
     MESSAGE (STATUS "Architecture: ${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
-    #we should need no longer need postinst since we have added extra install steps to what it would.
+    # We should need no longer need postinst since we have added extra install steps to what it would.
     #SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${CMAKE_SOURCE_DIR}/debian/postinst )
-    #set the name to be debian package like.
-    SET(CPACK_PACKAGE_FILE_NAME "q-gears_${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
+    # Set the name to be debian package like.
+    SET(CPACK_PACKAGE_FILE_NAME "v-gears_${CPACK_PACKAGE_VERSION}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
     #SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libogre-1.9, libois,libboost-program-options,libboost-filesystem,libvorbis,libopenal,libboost-test,zlib1g")
     SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libogre-1.9.0, libois-1.3.0,libboost-program-options1.54.0,libboost-filesystem1.54.0,libvorbis0a,libvorbisfile3,libvorbisenc2,libopenal1,libboost-test1.54.0,zlib1g,liblua5.1-0")
-
     #Set RPM info
-      SET(CPACK_RPM_PACKAGE_SUMMARY CPACK_PACKAGE_DESCRIPTION_SUMMARY)
-      SET(CPACK_RPM_PACKAGE_NAME CPACK_PACKAGE_NAME)
-      SET(CPACK_RPM_PACKAGE_VERSION CPACK_PACKAGE_VERSION)
-      SET(CPACK_RPM_PACKAGE_RELEASE 1)
-      SET(CPACK_RPM_PACKAGE_LICENSE "GPLv3+")
-      SET(CPACK_RPM_PACKAGE_GROUP games)
-      SET(CPACK_RPM_PACKAGE_VENDOR)
-      SET(CPACK_RPM_PACKAGE_DESCRIPTION)
-      #REQUIREMENTS NEED TO BE CHECKED USING FEDORA.
-      #SET(CPACK_RPM_PACKAGE_REQUIRES "ogre,ois,boost,vorbis,lua,zlib1g")
-
+    SET(CPACK_RPM_PACKAGE_SUMMARY CPACK_PACKAGE_DESCRIPTION_SUMMARY)
+    SET(CPACK_RPM_PACKAGE_NAME CPACK_PACKAGE_NAME)
+    SET(CPACK_RPM_PACKAGE_VERSION CPACK_PACKAGE_VERSION)
+    SET(CPACK_RPM_PACKAGE_RELEASE 1)
+    SET(CPACK_RPM_PACKAGE_LICENSE "GPLv3+")
+    SET(CPACK_RPM_PACKAGE_GROUP games)
+    SET(CPACK_RPM_PACKAGE_VENDOR)
+    SET(CPACK_RPM_PACKAGE_DESCRIPTION)
+    #REQUIREMENTS NEED TO BE CHECKED USING FEDORA.
+    #SET(CPACK_RPM_PACKAGE_REQUIRES "ogre,ois,boost,vorbis,lua,zlib1g")
 endif()
 
-SET_PROPERTY(TARGET liblua PROPERTY FOLDER "3rdparty")
-SET_PROPERTY(TARGET buildvm PROPERTY FOLDER "3rdparty")
 SET_PROPERTY(TARGET LuaBind PROPERTY FOLDER "3rdparty")
-SET_PROPERTY(TARGET luajit PROPERTY FOLDER "3rdparty")
-SET_PROPERTY(TARGET minilua PROPERTY FOLDER "3rdparty")
-SET_PROPERTY(TARGET TinyXml PROPERTY FOLDER "3rdparty")
-SET_PROPERTY(TARGET Sudm_Lib PROPERTY FOLDER "q-gears")
-
 
 INCLUDE(CPack)
-#End of install instructions
+#End of install instructions

+ 1 - 1
COPYING.txt

@@ -300,7 +300,7 @@ the "copyright" line and a pointer to where the full notice is found.
 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License along

+ 2734 - 0
Doxyfile

@@ -0,0 +1,2734 @@
+# Doxyfile 1.9.4
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a double hash (##) is considered a comment and is placed in
+# front of the TAG it is preceding.
+#
+# All text after a single hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists, items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (\" \").
+#
+# Note:
+#
+# Use doxygen to compare the used configuration file with the template
+# configuration file:
+# doxygen -x [configFile]
+# Use doxygen to compare the used configuration file with the template
+# configuration file without replacing the environment variables:
+# doxygen -x_noenv [configFile]
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the configuration
+# file that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
+# The default value is: UTF-8.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
+# double-quotes, unless you are using Doxywizard) that should identify the
+# project for which the documentation is generated. This name is used in the
+# title of most generated pages and in a few other places.
+# The default value is: My Project.
+
+PROJECT_NAME           = "V-Gears"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
+# could be handy for archiving the generated documentation or if some version
+# control system is used.
+
+PROJECT_NUMBER         = "0"
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer a
+# quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF          = "Free Final Fantasy VII engine."
+
+# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
+# in the documentation. The maximum height of the logo should not exceed 55
+# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
+# the logo to the output directory.
+
+PROJECT_LOGO           = v-gears.png
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
+# into which the generated documentation will be written. If a relative path is
+# entered, it will be relative to the location where doxygen was started. If
+# left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = doc/code/
+
+# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
+# sub-directories (in 2 levels) under the output directory of each output format
+# and will distribute the generated files over these directories. Enabling this
+# option can be useful when feeding doxygen a huge amount of source files, where
+# putting all generated files in the same directory would otherwise causes
+# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to
+# control the number of sub-directories.
+# The default value is: NO.
+
+CREATE_SUBDIRS         = YES
+
+# Controls the number of sub-directories that will be created when
+# CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every
+# level increment doubles the number of directories, resulting in 4096
+# directories at level 8 which is the default and also the maximum value. The
+# sub-directories are organized in 2 levels, the first level always has a fixed
+# numer of 16 directories.
+# Minimum value: 0, maximum value: 8, default value: 8.
+# This tag requires that the tag CREATE_SUBDIRS is set to YES.
+
+CREATE_SUBDIRS_LEVEL   = 1
+
+# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
+# characters to appear in the names of generated files. If set to NO, non-ASCII
+# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
+# U+3044.
+# The default value is: NO.
+
+ALLOW_UNICODE_NAMES    = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Bulgarian,
+# Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, English
+# (United States), Esperanto, Farsi (Persian), Finnish, French, German, Greek,
+# Hindi, Hungarian, Indonesian, Italian, Japanese, Japanese-en (Japanese with
+# English messages), Korean, Korean-en (Korean with English messages), Latvian,
+# Lithuanian, Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese,
+# Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish,
+# Swedish, Turkish, Ukrainian and Vietnamese.
+# The default value is: English.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
+# descriptions after the members that are listed in the file and class
+# documentation (similar to Javadoc). Set to NO to disable this.
+# The default value is: YES.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
+# description of a member or function before the detailed description
+#
+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+# The default value is: YES.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator that is
+# used to form the text in various listings. Each string in this list, if found
+# as the leading text of the brief description, will be stripped from the text
+# and the result, after processing the whole list, is used as the annotated
+# text. Otherwise, the brief description is used as-is. If left blank, the
+# following values are used ($name is automatically replaced with the name of
+# the entity):The $name class, The $name widget, The $name file, is, provides,
+# specifies, contains, represents, a, an and the.
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# doxygen will generate a detailed section even if there is only a brief
+# description.
+# The default value is: NO.
+
+ALWAYS_DETAILED_SEC    = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+# The default value is: NO.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
+# before files name in the file list and in the header files. If set to NO the
+# shortest path that makes the file name unique will be used
+# The default value is: YES.
+
+FULL_PATH_NAMES        = YES
+
+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
+# Stripping is only done if one of the specified strings matches the left-hand
+# part of the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the path to
+# strip.
+#
+# Note that you can specify absolute paths here, but also relative paths, which
+# will be relative from the directory where doxygen is started.
+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
+
+STRIP_FROM_PATH        =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
+# path mentioned in the documentation of a class, which tells the reader which
+# header file to include in order to use a class. If left blank only the name of
+# the header file containing the class definition is used. Otherwise one should
+# specify the list of include paths that are normally passed to the compiler
+# using the -I flag.
+
+STRIP_FROM_INC_PATH    =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
+# less readable) file names. This can be useful is your file systems doesn't
+# support long names like on DOS, Mac, or CD-ROM.
+# The default value is: NO.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
+# first line (until the first dot) of a Javadoc-style comment as the brief
+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
+# style comments (thus requiring an explicit @brief command for a brief
+# description.)
+# The default value is: NO.
+
+JAVADOC_AUTOBRIEF      = YES
+
+# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line
+# such as
+# /***************
+# as being the beginning of a Javadoc-style comment "banner". If set to NO, the
+# Javadoc-style will behave just like regular comments and it will not be
+# interpreted by doxygen.
+# The default value is: NO.
+
+JAVADOC_BANNER         = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
+# line (until the first dot) of a Qt-style comment as the brief description. If
+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
+# requiring an explicit \brief command for a brief description.)
+# The default value is: NO.
+
+QT_AUTOBRIEF           = YES
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
+# a brief description. This used to be the default behavior. The new default is
+# to treat a multi-line C++ comment block as a detailed description. Set this
+# tag to YES if you prefer the old behavior instead.
+#
+# Note that setting this tag to YES also means that rational rose comments are
+# not recognized any more.
+# The default value is: NO.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING       = YES
+
+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
+# documentation from any documented member that it re-implements.
+# The default value is: YES.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
+# page for each member. If set to NO, the documentation of a member will be part
+# of the file/class/namespace that contains it.
+# The default value is: NO.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
+# uses this value to replace tabs by spaces in code fragments.
+# Minimum value: 1, maximum value: 16, default value: 4.
+
+TAB_SIZE               = 4
+
+# This tag can be used to specify a number of aliases that act as commands in
+# the documentation. An alias has the form:
+# name=value
+# For example adding
+# "sideeffect=@par Side Effects:^^"
+# will allow you to put the command \sideeffect (or @sideeffect) in the
+# documentation, which will result in a user-defined paragraph with heading
+# "Side Effects:". Note that you cannot put \n's in the value part of an alias
+# to insert newlines (in the resulting output). You can put ^^ in the value part
+# of an alias to insert a newline as if a physical newline was in the original
+# file. When you need a literal { or } or , in the value part of an alias you
+# have to escape them by means of a backslash (\), this can lead to conflicts
+# with the commands \{ and \} for these it is advised to use the version @{ and
+# @} or use a double escape (\\{ and \\})
+
+ALIASES                =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C. For
+# instance, some of the names that are used will be different. The list of all
+# members will be omitted, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
+# Python sources only. Doxygen will then generate output that is more tailored
+# for that language. For instance, namespaces will be presented as packages,
+# qualified scopes will look different, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources. Doxygen will then generate output that is tailored for Fortran.
+# The default value is: NO.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for VHDL.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
+# sources only. Doxygen will then generate output that is more tailored for that
+# language. For instance, namespaces will be presented as modules, types will be
+# separated into more groups, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_SLICE  = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension, and
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
+# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
+# tries to guess whether the code is fixed or free formatted code, this is the
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
+#
+# Note: For files without extension you can use no_extension as a placeholder.
+#
+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
+# the files are not read by doxygen. When specifying no_extension you should add
+# * to the FILE_PATTERNS.
+#
+# Note see also the list of default file extension mappings.
+
+EXTENSION_MAPPING      =
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See https://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+# The default value is: YES.
+
+MARKDOWN_SUPPORT       = YES
+
+# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
+# to that level are automatically included in the table of contents, even if
+# they do not have an id attribute.
+# Note: This feature currently applies only to Markdown headings.
+# Minimum value: 0, maximum value: 99, default value: 5.
+# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
+
+TOC_INCLUDE_HEADINGS   = 5
+
+# When enabled doxygen tries to link words that correspond to documented
+# classes, or namespaces to their corresponding documentation. Such a link can
+# be prevented in individual cases by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+# The default value is: YES.
+
+AUTOLINK_SUPPORT       = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should set this
+# tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string);
+# versus func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+# The default value is: NO.
+
+BUILTIN_STL_SUPPORT    = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+# The default value is: NO.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
+# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
+# will parse them like normal C++ but will assume all classes use public instead
+# of private inheritance when no explicit protection keyword is present.
+# The default value is: NO.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES will make
+# doxygen to replace the get and set methods by a property in the documentation.
+# This will only work if the methods are indeed getting or setting a simple
+# type. If this is not the case, or you want to show the methods anyway, you
+# should set this option to NO.
+# The default value is: YES.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+# The default value is: NO.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# If one adds a struct or class to a group and this option is enabled, then also
+# any nested class or struct is added to the same group. By default this option
+# is disabled and one has to add nested compounds explicitly via \ingroup.
+# The default value is: NO.
+
+GROUP_NESTED_COMPOUNDS = NO
+
+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
+# (for instance a group of public functions) to be put as a subgroup of that
+# type (e.g. under the Public Functions section). Set it to NO to prevent
+# subgrouping. Alternatively, this can be done per class using the
+# \nosubgrouping command.
+# The default value is: YES.
+
+SUBGROUPING            = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
+# are shown inside the group in which they are included (e.g. using \ingroup)
+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
+# and RTF).
+#
+# Note that this feature does not work in combination with
+# SEPARATE_MEMBER_PAGES.
+# The default value is: NO.
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
+# with only public data fields or simple typedef fields will be shown inline in
+# the documentation of the scope in which they are defined (i.e. file,
+# namespace, or group documentation), provided this scope is documented. If set
+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
+# Man pages) or section (for LaTeX and RTF).
+# The default value is: NO.
+
+INLINE_SIMPLE_STRUCTS  = NO
+
+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
+# enum is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically be
+# useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+# The default value is: NO.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
+# doxygen will become slower. If the cache is too large, memory is wasted. The
+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
+
+LOOKUP_CACHE_SIZE      = 0
+
+# The NUM_PROC_THREADS specifies the number of threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which effectively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS       = 2
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
+# documentation are documented, even if no documentation was available. Private
+# class members and static file members will be hidden unless the
+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
+# Note: This will also disable the warnings about undocumented members that are
+# normally produced when WARNINGS is set to YES.
+# The default value is: NO.
+
+EXTRACT_ALL            = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
+# be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIVATE        = YES
+
+# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual
+# methods of a class will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIV_VIRTUAL   = YES
+
+# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
+# scope will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PACKAGE        = YES
+
+# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
+# included in the documentation.
+# The default value is: NO.
+
+EXTRACT_STATIC         = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
+# locally in source files will be included in the documentation. If set to NO,
+# only classes defined in header files are included. Does not have any effect
+# for Java sources.
+# The default value is: YES.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. If set to YES, local methods,
+# which are defined in the implementation section but not in the interface are
+# included in the documentation. If set to NO, only methods in the interface are
+# included.
+# The default value is: NO.
+
+EXTRACT_LOCAL_METHODS  = YES
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base name of
+# the file that contains the anonymous namespace. By default anonymous namespace
+# are hidden.
+# The default value is: NO.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If this flag is set to YES, the name of an unnamed parameter in a declaration
+# will be determined by the corresponding definition. By default unnamed
+# parameters remain unnamed in the output.
+# The default value is: YES.
+
+RESOLVE_UNNAMED_PARAMS = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
+# undocumented members inside documented classes or files. If set to NO these
+# members will be included in the various overviews, but no documentation
+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy. If set
+# to NO, these classes will be included in the various overviews. This option
+# has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
+# The default value is: NO.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
+# documentation blocks found inside the body of a function. If set to NO, these
+# blocks will be appended to the function's detailed documentation block.
+# The default value is: NO.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation that is typed after a
+# \internal command is included. If the tag is set to NO then the documentation
+# will be excluded. Set it to YES to include the internal documentation.
+# The default value is: NO.
+
+INTERNAL_DOCS          = NO
+
+# With the correct setting of option CASE_SENSE_NAMES doxygen will better be
+# able to match the capabilities of the underlying filesystem. In case the
+# filesystem is case sensitive (i.e. it supports files in the same directory
+# whose names only differ in casing), the option must be set to YES to properly
+# deal with such files in case they appear in the input. For filesystems that
+# are not case sensitive the option should be set to NO to properly deal with
+# output files written for symbols that only differ in casing, such as for two
+# classes, one named CLASS and the other named Class, and to also support
+# references to files without having to specify the exact matching casing. On
+# Windows (including Cygwin) and MacOS, users should typically set this option
+# to NO, whereas on Linux or other Unix flavors it should typically be set to
+# YES.
+# The default value is: system dependent.
+
+CASE_SENSE_NAMES       = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
+# their full class and namespace scopes in the documentation. If set to YES, the
+# scope will be hidden.
+# The default value is: NO.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
+# append additional text to a page's title, such as Class Reference. If set to
+# YES the compound reference will be hidden.
+# The default value is: NO.
+
+HIDE_COMPOUND_REFERENCE= NO
+
+# If the SHOW_HEADERFILE tag is set to YES then the documentation for a class
+# will show which file needs to be included to use the class.
+# The default value is: YES.
+
+SHOW_HEADERFILE        = YES
+
+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
+# the files that are included by a file in the documentation of that file.
+# The default value is: YES.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
+# grouped member an include statement to the documentation, telling the reader
+# which file to include in order to use the member.
+# The default value is: NO.
+
+SHOW_GROUPED_MEMB_INC  = NO
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
+# files with double quotes in the documentation rather than with sharp brackets.
+# The default value is: NO.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
+# documentation for inline members.
+# The default value is: YES.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
+# (detailed) documentation of file and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order.
+# The default value is: YES.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
+# descriptions of file, namespace and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order. Note that
+# this will also influence the order of the classes in the class list.
+# The default value is: NO.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
+# (brief and detailed) documentation of class members so that constructors and
+# destructors are listed first. If set to NO the constructors will appear in the
+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
+# member documentation.
+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
+# detailed member documentation.
+# The default value is: NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
+# of group names into alphabetical order. If set to NO the group names will
+# appear in their defined order.
+# The default value is: NO.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
+# fully-qualified names, including namespaces. If set to NO, the class list will
+# be sorted only by class name, not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the alphabetical
+# list.
+# The default value is: NO.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
+# type resolution of all parameters of a function it will reject a match between
+# the prototype and the implementation of a member function even if there is
+# only one candidate or it is obvious which candidate to choose by doing a
+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
+# accept a match between prototype and implementation in such cases.
+# The default value is: NO.
+
+STRICT_PROTO_MATCHING  = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
+# list. This list is created by putting \todo commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
+# list. This list is created by putting \test commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
+# list. This list is created by putting \bug commands in the documentation.
+# The default value is: YES.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
+# the deprecated list. This list is created by putting \deprecated commands in
+# the documentation.
+# The default value is: YES.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
+# ... \endcond blocks.
+
+ENABLED_SECTIONS       =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
+# initial value of a variable or macro / define can have for it to appear in the
+# documentation. If the initializer consists of more lines than specified here
+# it will be hidden. Use a value of 0 to hide initializers completely. The
+# appearance of the value of individual variables and macros / defines can be
+# controlled using \showinitializer or \hideinitializer command in the
+# documentation regardless of this setting.
+# Minimum value: 0, maximum value: 10000, default value: 30.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
+# the bottom of the documentation of classes and structs. If set to YES, the
+# list will mention the files that were used to generate the documentation.
+# The default value is: YES.
+
+SHOW_USED_FILES        = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
+# will remove the Files entry from the Quick Index and from the Folder Tree View
+# (if specified).
+# The default value is: YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
+# page. This will remove the Namespaces entry from the Quick Index and from the
+# Folder Tree View (if specified).
+# The default value is: YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command command input-file, where command is the value of the
+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
+# by doxygen. Whatever the program writes to standard output is used as the file
+# version. For an example see the documentation.
+
+FILE_VERSION_FILTER    =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option. You can
+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
+# will be used as the name of the layout file. See also section "Changing the
+# layout of pages" for information.
+#
+# Note that if you run doxygen from a directory containing a file called
+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
+# tag is left empty.
+
+LAYOUT_FILE            =
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
+# the reference definitions. This must be a list of .bib files. The .bib
+# extension is automatically appended if omitted. This requires the bibtex tool
+# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
+# For LaTeX the style of the bibliography can be controlled using
+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
+# search path. See also \cite for info how to create references.
+
+CITE_BIB_FILES         =
+
+#---------------------------------------------------------------------------
+# Configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated to
+# standard output by doxygen. If QUIET is set to YES this implies that the
+# messages are off.
+# The default value is: NO.
+
+QUIET                  = YES
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
+# this implies that the warnings are on.
+#
+# Tip: Turn warnings on while writing the documentation.
+# The default value is: YES.
+
+WARNINGS               = YES
+
+# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: YES.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as documenting some parameters in
+# a documented function twice, or documenting parameters that don't exist or
+# using markup commands wrongly.
+# The default value is: YES.
+
+WARN_IF_DOC_ERROR      = YES
+
+# If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete
+# function parameter documentation. If set to NO, doxygen will accept that some
+# parameters have no documentation without warning.
+# The default value is: YES.
+
+WARN_IF_INCOMPLETE_DOC = YES
+
+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
+# are documented, but have no documentation for their parameters or return
+# value. If set to NO, doxygen will only warn about wrong parameter
+# documentation, but not about the absence of documentation. If EXTRACT_ALL is
+# set to YES then this flag will automatically be disabled. See also
+# WARN_IF_INCOMPLETE_DOC
+# The default value is: NO.
+
+WARN_NO_PARAMDOC       = YES
+
+# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
+# a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS
+# then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but
+# at the end of the doxygen process doxygen will return with a non-zero status.
+# Possible values are: NO, YES and FAIL_ON_WARNINGS.
+# The default value is: NO.
+
+WARN_AS_ERROR          = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
+# can produce. The string should contain the $file, $line, and $text tags, which
+# will be replaced by the file and line number from which the warning originated
+# and the warning text. Optionally the format may contain $version, which will
+# be replaced by the version of the file (if it could be obtained via
+# FILE_VERSION_FILTER)
+# See also: WARN_LINE_FORMAT
+# The default value is: $file:$line: $text.
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# In the $text part of the WARN_FORMAT command it is possible that a reference
+# to a more specific place is given. To make it easier to jump to this place
+# (outside of doxygen) the user can define a custom "cut" / "paste" string.
+# Example:
+# WARN_LINE_FORMAT = "'vi $file +$line'"
+# See also: WARN_FORMAT
+# The default value is: at line $line of file $file.
+
+WARN_LINE_FORMAT       = "at line $line of file $file"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning and error
+# messages should be written. If left blank the output is written to standard
+# error (stderr). In case the file specified cannot be opened for writing the
+# warning and error messages are written to standard error. When as file - is
+# specified the warning and error messages are written to standard output
+# (stdout).
+
+WARN_LOGFILE           =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag is used to specify the files and/or directories that contain
+# documented source files. You may enter file names like myfile.cpp or
+# directories like /usr/src/myproject. Separate the files or directories with
+# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
+# Note: If this tag is empty the current directory is searched.
+
+INPUT                  = V-Gears V-Gears-Installer
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
+# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
+# documentation (see:
+# https://www.gnu.org/software/libiconv/) for the list of possible encodings.
+# The default value is: UTF-8.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
+# *.h) to filter out the source-files in the directories.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# read by doxygen.
+#
+# Note the list of default checked file patterns might differ from the list of
+# default file extension mappings.
+#
+# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
+# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
+# *.hh, *.hxx, *.hpp, *.h++, *.l, *.cs, *.d, *.php, *.php4, *.php5, *.phtml,
+# *.inc, *.m, *.markdown, *.md, *.mm, *.dox (to be provided as doxygen C
+# comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, *.f18, *.f, *.for, *.vhd,
+# *.vhdl, *.ucf, *.qsf and *.ice.
+
+FILE_PATTERNS          = *.c \
+                         *.cc \
+                         *.cxx \
+                         *.cpp \
+                         *.c++ \
+                         *.java \
+                         *.ii \
+                         *.ixx \
+                         *.ipp \
+                         *.i++ \
+                         *.inl \
+                         *.idl \
+                         *.ddl \
+                         *.odl \
+                         *.h \
+                         *.hh \
+                         *.hxx \
+                         *.hpp \
+                         *.h++ \
+                         *.l \
+                         *.cs \
+                         *.d \
+                         *.php \
+                         *.php4 \
+                         *.php5 \
+                         *.phtml \
+                         *.inc \
+                         *.m \
+                         *.markdown \
+                         *.md \
+                         *.mm \
+                         *.dox \
+                         *.py \
+                         *.pyw \
+                         *.f90 \
+                         *.f95 \
+                         *.f03 \
+                         *.f08 \
+                         *.f18 \
+                         *.f \
+                         *.for \
+                         *.vhd \
+                         *.vhdl \
+                         *.ucf \
+                         *.qsf \
+                         *.ice \
+                         *.ui
+
+# The RECURSIVE tag can be used to specify whether or not subdirectories should
+# be searched for input files as well.
+# The default value is: NO.
+
+RECURSIVE              = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+#
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE                =
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+# The default value is: NO.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories.
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# ANamespace::AClass, ANamespace::*Test
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories use the pattern */test/*
+
+EXCLUDE_SYMBOLS        =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or directories
+# that contain example code fragments that are included (see the \include
+# command).
+
+EXAMPLE_PATH           =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
+# *.h) to filter out the source-files in the directories. If left blank all
+# files are included.
+
+EXAMPLE_PATTERNS       = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude commands
+# irrespective of the value of the RECURSIVE tag.
+# The default value is: NO.
+
+EXAMPLE_RECURSIVE      = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or directories
+# that contain images that are to be included in the documentation (see the
+# \image command).
+
+IMAGE_PATH             =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command:
+#
+# <filter> <input-file>
+#
+# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
+# name of an input file. Doxygen will then use the output that the filter
+# program writes to standard output. If FILTER_PATTERNS is specified, this tag
+# will be ignored.
+#
+# Note that the filter must not add or remove lines; it is applied before the
+# code is scanned, but not when the output code is generated. If lines are added
+# or removed, the anchors will not be placed correctly.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+INPUT_FILTER           =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form: pattern=filter
+# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
+# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
+# patterns match the file name, INPUT_FILTER is applied.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+FILTER_PATTERNS        =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will also be used to filter the input files that are used for
+# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
+# The default value is: NO.
+
+FILTER_SOURCE_FILES    = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
+# it is also possible to disable source filtering for a specific pattern using
+# *.ext= (so without naming a filter).
+# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page
+# (index.html). This can be useful if you have a project on for instance GitHub
+# and want to reuse the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
+# generated. Documented entities will be cross-referenced with these sources.
+#
+# Note: To get rid of all source code in the generated output, make sure that
+# also VERBATIM_HEADERS is set to NO.
+# The default value is: NO.
+
+SOURCE_BROWSER         = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body of functions,
+# classes and enums directly into the documentation.
+# The default value is: NO.
+
+INLINE_SOURCES         = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
+# special comment blocks from generated source code fragments. Normal C, C++ and
+# Fortran comments will always remain visible.
+# The default value is: YES.
+
+STRIP_CODE_COMMENTS    = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
+# entity all documented functions referencing it will be listed.
+# The default value is: NO.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES then for each documented function
+# all documented entities called/used by that function will be listed.
+# The default value is: NO.
+
+REFERENCES_RELATION    = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
+# to YES then the hyperlinks from functions in REFERENCES_RELATION and
+# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
+# link to the documentation.
+# The default value is: YES.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
+# source code will show a tooltip with additional information such as prototype,
+# brief description and links to the definition and documentation. Since this
+# will make the HTML file larger and loading of large files a bit slower, you
+# can opt to disable this feature.
+# The default value is: YES.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+SOURCE_TOOLTIPS        = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code will
+# point to the HTML generated by the htags(1) tool instead of doxygen built-in
+# source browser. The htags tool is part of GNU's global source tagging system
+# (see https://www.gnu.org/software/global/global.html). You will need version
+# 4.8.6 or higher.
+#
+# To use it do the following:
+# - Install the latest version of global
+# - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file
+# - Make sure the INPUT points to the root of the source tree
+# - Run doxygen as normal
+#
+# Doxygen will invoke htags (and that will in turn invoke gtags), so these
+# tools must be available from the command line (i.e. in the search path).
+#
+# The result: instead of the source browser generated by doxygen, the links to
+# source code will now point to the output of htags.
+# The default value is: NO.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
+# verbatim copy of the header file for each class for which an include is
+# specified. Set to NO to disable this.
+# See also: Section \class.
+# The default value is: YES.
+
+VERBATIM_HEADERS       = YES
+
+# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
+# clang parser (see:
+# http://clang.llvm.org/) for more accurate parsing at the cost of reduced
+# performance. This can be particularly helpful with template rich C++ code for
+# which doxygen's built-in parser lacks the necessary type information.
+# Note: The availability of this option depends on whether or not doxygen was
+# generated with the -Duse_libclang=ON option for CMake.
+# The default value is: NO.
+
+CLANG_ASSISTED_PARSING = NO
+
+# If the CLANG_ASSISTED_PARSING tag is set to YES and the CLANG_ADD_INC_PATHS
+# tag is set to YES then doxygen will add the directory of each input to the
+# include path.
+# The default value is: YES.
+# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
+
+CLANG_ADD_INC_PATHS    = YES
+
+# If clang assisted parsing is enabled you can provide the compiler with command
+# line options that you would normally use when invoking the compiler. Note that
+# the include paths will already be set by doxygen for the files and directories
+# specified with INPUT and INCLUDE_PATH.
+# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
+
+CLANG_OPTIONS          =
+
+# If clang assisted parsing is enabled you can provide the clang parser with the
+# path to the directory containing a file called compile_commands.json. This
+# file is the compilation database (see:
+# http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html) containing the
+# options used when the source files were built. This is equivalent to
+# specifying the -p option to a clang tool, such as clang-check. These options
+# will then be passed to the parser. Any options specified with CLANG_OPTIONS
+# will be added as well.
+# Note: The availability of this option depends on whether or not doxygen was
+# generated with the -Duse_libclang=ON option for CMake.
+
+CLANG_DATABASE_PATH    =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
+# compounds will be generated. Enable this if the project contains a lot of
+# classes, structs, unions or interfaces.
+# The default value is: YES.
+
+ALPHABETICAL_INDEX     = YES
+
+# In case all classes in a project start with a common prefix, all classes will
+# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
+# can be used to specify a prefix (or a list of prefixes) that should be ignored
+# while generating the index headers.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+IGNORE_PREFIX          =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
+# The default value is: YES.
+
+GENERATE_HTML          = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_OUTPUT            = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
+# generated HTML page (for example: .htm, .php, .asp).
+# The default value is: .html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FILE_EXTENSION    = .html
+
+# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
+# each generated HTML page. If the tag is left blank doxygen will generate a
+# standard header.
+#
+# To get valid HTML the header file that includes any scripts and style sheets
+# that doxygen needs, which is dependent on the configuration options used (e.g.
+# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
+# default header using
+# doxygen -w html new_header.html new_footer.html new_stylesheet.css
+# YourConfigFile
+# and then modify the file new_header.html. See also section "Doxygen usage"
+# for information on how to generate the default header that doxygen normally
+# uses.
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. For a description
+# of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_HEADER            =
+
+# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
+# generated HTML page. If the tag is left blank doxygen will generate a standard
+# footer. See HTML_HEADER for more information on how to generate a default
+# footer and what special commands can be used inside the footer. See also
+# section "Doxygen usage" for information on how to generate the default footer
+# that doxygen normally uses.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FOOTER            =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
+# sheet that is used by each HTML page. It can be used to fine-tune the look of
+# the HTML output. If left blank doxygen will generate a default style sheet.
+# See also section "Doxygen usage" for information on how to generate the style
+# sheet that doxygen normally uses.
+# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
+# it is more robust and this tag (HTML_STYLESHEET) will in the future become
+# obsolete.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_STYLESHEET        =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# cascading style sheets that are included after the standard style sheets
+# created by doxygen. Using this option one can overrule certain style aspects.
+# This is preferred over using HTML_STYLESHEET since it does not replace the
+# standard style sheet and is therefore more robust against future updates.
+# Doxygen will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list). For an example see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_STYLESHEET  =
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
+# files will be copied as-is; there are no commands or markers available.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_FILES       =
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
+# will adjust the colors in the style sheet and background images according to
+# this color. Hue is specified as an angle on a color-wheel, see
+# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
+# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
+# purple, and 360 is red again.
+# Minimum value: 0, maximum value: 359, default value: 220.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_HUE    = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
+# in the HTML output. For a value of 0 the output will use gray-scales only. A
+# value of 255 will produce the most vivid colors.
+# Minimum value: 0, maximum value: 255, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_SAT    = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
+# luminance component of the colors in the HTML output. Values below 100
+# gradually make the output lighter, whereas values above 100 make the output
+# darker. The value divided by 100 is the actual gamma applied, so 80 represents
+# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
+# change the gamma.
+# Minimum value: 40, maximum value: 240, default value: 80.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_GAMMA  = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting this
+# to YES can help to show when doxygen was last run and thus if the
+# documentation is up to date.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_TIMESTAMP         = NO
+
+# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
+# documentation will contain a main index with vertical navigation menus that
+# are dynamically created via JavaScript. If disabled, the navigation index will
+# consists of multiple levels of tabs that are statically embedded in every HTML
+# page. Disable this option to support browsers that do not have JavaScript,
+# like the Qt help browser.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_MENUS     = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_SECTIONS  = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
+# shown in the various tree structured indices initially; the user can expand
+# and collapse entries dynamically later on. Doxygen will expand the tree to
+# such a level that at most the specified number of entries are visible (unless
+# a fully collapsed tree already exceeds this amount). So setting the number of
+# entries 1 will produce a full collapsed tree by default. 0 is a special value
+# representing an infinite number of entries and will result in a full expanded
+# tree by default.
+# Minimum value: 0, maximum value: 9999, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files will be
+# generated that can be used as input for Apple's Xcode 3 integrated development
+# environment (see:
+# https://developer.apple.com/xcode/), introduced with OSX 10.5 (Leopard). To
+# create a documentation set, doxygen will generate a Makefile in the HTML
+# output directory. Running make will produce the docset in that directory and
+# running make install will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
+# startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy
+# genXcode/_index.html for more information.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_DOCSET        = NO
+
+# This tag determines the name of the docset feed. A documentation feed provides
+# an umbrella under which multiple documentation sets from a single provider
+# (such as a company or product suite) can be grouped.
+# The default value is: Doxygen generated docs.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_FEEDNAME        = "Doxygen generated docs"
+
+# This tag determines the URL of the docset feed. A documentation feed provides
+# an umbrella under which multiple documentation sets from a single provider
+# (such as a company or product suite) can be grouped.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_FEEDURL         =
+
+# This tag specifies a string that should uniquely identify the documentation
+# set bundle. This should be a reverse domain-name style string, e.g.
+# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_BUNDLE_ID       = org.doxygen.Project
+
+# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
+# the documentation publisher. This should be a reverse domain-name style
+# string, e.g. com.mycompany.MyDocSet.documentation.
+# The default value is: org.doxygen.Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
+
+# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
+# The default value is: Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_NAME  = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
+# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
+# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
+# on Windows. In the beginning of 2021 Microsoft took the original page, with
+# a.o. the download links, offline the HTML help workshop was already many years
+# in maintenance mode). You can download the HTML help workshop from the web
+# archives at Installation executable (see:
+# http://web.archive.org/web/20160201063255/http://download.microsoft.com/downlo
+# ad/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe).
+#
+# The HTML Help Workshop contains a compiler that can convert all HTML output
+# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
+# files are now used as the Windows 98 help format, and will replace the old
+# Windows help format (.hlp) on all Windows platforms in the future. Compressed
+# HTML files also contain an index, a table of contents, and you can search for
+# words in the documentation. The HTML workshop also contains a viewer for
+# compressed HTML files.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_HTMLHELP      = NO
+
+# The CHM_FILE tag can be used to specify the file name of the resulting .chm
+# file. You can add a path in front of the file if the result should not be
+# written to the html output directory.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_FILE               =
+
+# The HHC_LOCATION tag can be used to specify the location (absolute path
+# including file name) of the HTML help compiler (hhc.exe). If non-empty,
+# doxygen will try to run the HTML help compiler on the generated index.hhp.
+# The file has to be specified with full path.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+HHC_LOCATION           =
+
+# The GENERATE_CHI flag controls if a separate .chi index file is generated
+# (YES) or that it should be included in the main .chm file (NO).
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+GENERATE_CHI           = NO
+
+# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
+# and project file content.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_INDEX_ENCODING     =
+
+# The BINARY_TOC flag controls whether a binary table of contents is generated
+# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
+# enables the Previous and Next buttons.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members to
+# the table of contents of the HTML help documentation and to the tree view.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+TOC_EXPAND             = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
+# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
+# (.qch) of the generated HTML documentation.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
+# the file name of the resulting .qch file. The path specified is relative to
+# the HTML output folder.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QCH_FILE               =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
+# Project output. For more information please see Qt Help Project / Namespace
+# (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace).
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_NAMESPACE          = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
+# Help Project output. For more information please see Qt Help Project / Virtual
+# Folders (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-folders).
+# The default value is: doc.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
+# filter to add. For more information please see Qt Help Project / Custom
+# Filters (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_NAME   =
+
+# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see Qt Help Project / Custom
+# Filters (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_ATTRS  =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's filter section matches. Qt Help Project / Filter Attributes (see:
+# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_SECT_FILTER_ATTRS  =
+
+# The QHG_LOCATION tag can be used to specify the location (absolute path
+# including file name) of Qt's qhelpgenerator. If non-empty doxygen will try to
+# run qhelpgenerator on the generated .qhp file.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHG_LOCATION           =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
+# generated, together with the HTML files, they form an Eclipse help plugin. To
+# install this plugin and make it available under the help contents menu in
+# Eclipse, the contents of the directory containing the HTML and XML files needs
+# to be copied into the plugins directory of eclipse. The name of the directory
+# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
+# After copying Eclipse needs to be restarted before the help appears.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_ECLIPSEHELP   = NO
+
+# A unique identifier for the Eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have this
+# name. Each documentation set should have its own identifier.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
+
+ECLIPSE_DOC_ID         = org.doxygen.Project
+
+# If you want full control over the layout of the generated HTML pages it might
+# be necessary to disable the index and replace it with your own. The
+# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
+# of each HTML page. A value of NO enables the index and the value YES disables
+# it. Since the tabs in the index contain the same information as the navigation
+# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+DISABLE_INDEX          = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information. If the tag
+# value is set to YES, a side panel will be generated containing a tree-like
+# index structure (just like the one that is generated for HTML Help). For this
+# to work a browser that supports JavaScript, DHTML, CSS and frames is required
+# (i.e. any modern browser). Windows users are probably better off using the
+# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
+# further fine tune the look of the index (see "Fine-tuning the output"). As an
+# example, the default style sheet generated by doxygen has an example that
+# shows how to put an image at the root of the tree instead of the PROJECT_NAME.
+# Since the tree basically has the same information as the tab index, you could
+# consider setting DISABLE_INDEX to YES when enabling this option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_TREEVIEW      = YES
+
+# When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the
+# FULL_SIDEBAR option determines if the side bar is limited to only the treeview
+# area (value NO) or if it should extend to the full height of the window (value
+# YES). Setting this to YES gives a layout similar to
+# https://docs.readthedocs.io with more room for contents, but less room for the
+# project logo, title, and description. If either GENERATE_TREEVIEW or
+# DISABLE_INDEX is set to NO, this option has no effect.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FULL_SIDEBAR           = NO
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
+# doxygen will group on one line in the generated HTML documentation.
+#
+# Note that a value of 0 will completely suppress the enum values from appearing
+# in the overview section.
+# Minimum value: 0, maximum value: 20, default value: 4.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+ENUM_VALUES_PER_LINE   = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
+# to set the initial width (in pixels) of the frame in which the tree is shown.
+# Minimum value: 0, maximum value: 1500, default value: 250.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+TREEVIEW_WIDTH         = 250
+
+# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
+# external symbols imported via tag files in a separate window.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+EXT_LINKS_IN_WINDOW    = NO
+
+# If the OBFUSCATE_EMAILS tag is set to YES, doxygen will obfuscate email
+# addresses.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+OBFUSCATE_EMAILS       = YES
+
+# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg
+# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see
+# https://inkscape.org) to generate formulas as SVG images instead of PNGs for
+# the HTML output. These images will generally look nicer at scaled resolutions.
+# Possible values are: png (the default) and svg (looks nicer but requires the
+# pdf2svg or inkscape tool).
+# The default value is: png.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FORMULA_FORMAT    = png
+
+# Use this tag to change the font size of LaTeX formulas included as images in
+# the HTML documentation. When you change the font size after a successful
+# doxygen run you need to manually remove any form_*.png images from the HTML
+# output directory to force them to be regenerated.
+# Minimum value: 8, maximum value: 50, default value: 10.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_FONTSIZE       = 10
+
+# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are not
+# supported properly for IE 6.0, but are supported on all modern browsers.
+#
+# Note that when changing this option you need to delete any form_*.png files in
+# the HTML output directory before the changes have effect.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_TRANSPARENT    = YES
+
+# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands
+# to create new LaTeX commands to be used in formulas as building blocks. See
+# the section "Including formulas" for details.
+
+FORMULA_MACROFILE      =
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
+# https://www.mathjax.org) which uses client side JavaScript for the rendering
+# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
+# installed or if you want to formulas look prettier in the HTML output. When
+# enabled you may also need to install MathJax separately and configure the path
+# to it using the MATHJAX_RELPATH option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+USE_MATHJAX            = NO
+
+# With MATHJAX_VERSION it is possible to specify the MathJax version to be used.
+# Note that the different versions of MathJax have different requirements with
+# regards to the different settings, so it is possible that also other MathJax
+# settings have to be changed when switching between the different MathJax
+# versions.
+# Possible values are: MathJax_2 and MathJax_3.
+# The default value is: MathJax_2.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_VERSION        = MathJax_2
+
+# When MathJax is enabled you can set the default output format to be used for
+# the MathJax output. For more details about the output format see MathJax
+# version 2 (see:
+# http://docs.mathjax.org/en/v2.7-latest/output.html) and MathJax version 3
+# (see:
+# http://docs.mathjax.org/en/latest/web/components/output.html).
+# Possible values are: HTML-CSS (which is slower, but has the best
+# compatibility. This is the name for Mathjax version 2, for MathJax version 3
+# this will be translated into chtml), NativeMML (i.e. MathML. Only supported
+# for NathJax 2. For MathJax version 3 chtml will be used instead.), chtml (This
+# is the name for Mathjax version 3, for MathJax version 2 this will be
+# translated into HTML-CSS) and SVG.
+# The default value is: HTML-CSS.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_FORMAT         = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the HTML
+# output directory using the MATHJAX_RELPATH option. The destination directory
+# should contain the MathJax.js script. For instance, if the mathjax directory
+# is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
+# Content Delivery Network so you can quickly see the result without installing
+# MathJax. However, it is strongly recommended to install a local copy of
+# MathJax from https://www.mathjax.org before deployment. The default value is:
+# - in case of MathJax version 2: https://cdn.jsdelivr.net/npm/mathjax@2
+# - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_RELPATH        =
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
+# extension names that should be enabled during MathJax rendering. For example
+# for MathJax version 2 (see
+# https://docs.mathjax.org/en/v2.7-latest/tex.html#tex-and-latex-extensions):
+# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
+# For example for MathJax version 3 (see
+# http://docs.mathjax.org/en/latest/input/tex/extensions/index.html):
+# MATHJAX_EXTENSIONS = ams
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_EXTENSIONS     =
+
+# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
+# of code that will be used on startup of the MathJax code. See the MathJax site
+# (see:
+# http://docs.mathjax.org/en/v2.7-latest/output.html) for more details. For an
+# example see the documentation.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_CODEFILE       =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
+# the HTML output. The underlying search engine uses javascript and DHTML and
+# should work on any modern browser. Note that when using HTML help
+# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
+# there is already a search function so this one should typically be disabled.
+# For large projects the javascript based search engine can be slow, then
+# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
+# search using the keyboard; to jump to the search box use <access key> + S
+# (what the <access key> is depends on the OS and browser, but it is typically
+# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
+# key> to jump into the search results window, the results can be navigated
+# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
+# the search. The filter options can be selected when the cursor is inside the
+# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
+# to select a filter and <Enter> or <escape> to activate or cancel the filter
+# option.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+SEARCHENGINE           = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using JavaScript. There
+# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
+# setting. When disabled, doxygen will generate a PHP script for searching and
+# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
+# and searching needs to be provided by external tools. See the section
+# "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SERVER_BASED_SEARCH    = NO
+
+# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
+# search results.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see:
+# https://xapian.org/).
+#
+# See the section "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH        = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will return the search results when EXTERNAL_SEARCH is enabled.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see:
+# https://xapian.org/). See the section "External Indexing and Searching" for
+# details.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHENGINE_URL       =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+# The default file is: searchdata.xml.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHDATA_FILE        = searchdata.xml
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH_ID     =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
+# to a relative location where the documentation can be found. The format is:
+# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTRA_SEARCH_MAPPINGS  =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
+# The default value is: YES.
+
+GENERATE_LATEX         = YES
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked.
+#
+# Note that when not enabling USE_PDFLATEX the default is latex when enabling
+# USE_PDFLATEX the default is pdflatex and when in the later case latex is
+# chosen this is overwritten by pdflatex. For specific output languages the
+# default can have been set differently, this depends on the implementation of
+# the output language.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_CMD_NAME         =
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
+# index for LaTeX.
+# Note: This tag is used in the Makefile / make.bat.
+# See also: LATEX_MAKEINDEX_CMD for the part in the generated output file
+# (.tex).
+# The default file is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# The LATEX_MAKEINDEX_CMD tag can be used to specify the command name to
+# generate index for LaTeX. In case there is no backslash (\) as first character
+# it will be automatically added in the LaTeX code.
+# Note: This tag is used in the generated output file (.tex).
+# See also: MAKEINDEX_CMD_NAME for the part in the Makefile / make.bat.
+# The default value is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_MAKEINDEX_CMD    = makeindex
+
+# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used by the
+# printer.
+# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
+# 14 inches) and executive (7.25 x 10.5 inches).
+# The default value is: a4.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PAPER_TYPE             = a4
+
+# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
+# that should be included in the LaTeX output. The package can be specified just
+# by its name or with the correct syntax as to be used with the LaTeX
+# \usepackage command. To get the times font for instance you can specify :
+# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
+# To use the option intlimits with the amsmath package you can specify:
+# EXTRA_PACKAGES=[intlimits]{amsmath}
+# If left blank no extra packages will be included.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+EXTRA_PACKAGES         =
+
+# The LATEX_HEADER tag can be used to specify a user-defined LaTeX header for
+# the generated LaTeX document. The header should contain everything until the
+# first chapter. If it is left blank doxygen will generate a standard header. It
+# is highly recommended to start with a default header using
+# doxygen -w latex new_header.tex new_footer.tex new_stylesheet.sty
+# and then modify the file new_header.tex. See also section "Doxygen usage" for
+# information on how to generate the default header that doxygen normally uses.
+#
+# Note: Only use a user-defined header if you know what you are doing!
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. The following
+# commands have a special meaning inside the header (and footer): For a
+# description of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HEADER           =
+
+# The LATEX_FOOTER tag can be used to specify a user-defined LaTeX footer for
+# the generated LaTeX document. The footer should contain everything after the
+# last chapter. If it is left blank doxygen will generate a standard footer. See
+# LATEX_HEADER for more information on how to generate a default footer and what
+# special commands can be used inside the footer. See also section "Doxygen
+# usage" for information on how to generate the default footer that doxygen
+# normally uses. Note: Only use a user-defined footer if you know what you are
+# doing!
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_FOOTER           =
+
+# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# LaTeX style sheets that are included after the standard style sheets created
+# by doxygen. Using this option one can overrule certain style aspects. Doxygen
+# will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list).
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_STYLESHEET =
+
+# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the LATEX_OUTPUT output
+# directory. Note that the files will be copied as-is; there are no commands or
+# markers available.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_FILES      =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
+# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
+# contain links (just like the HTML output) instead of page references. This
+# makes the output suitable for online browsing using a PDF viewer.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PDF_HYPERLINKS         = YES
+
+# If the USE_PDFLATEX tag is set to YES, doxygen will use the engine as
+# specified with LATEX_CMD_NAME to generate the PDF file directly from the LaTeX
+# files. Set this option to YES, to get a higher quality PDF documentation.
+#
+# See also section LATEX_CMD_NAME for selecting the engine.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+USE_PDFLATEX           = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
+# command to the generated LaTeX files. This will instruct LaTeX to keep running
+# if errors occur, instead of asking the user for help.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BATCHMODE        = NO
+
+# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
+# index chapters (such as File Index, Compound Index, etc.) in the output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HIDE_INDICES     = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. See
+# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
+# The default value is: plain.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BIB_STYLE        = plain
+
+# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
+# page will contain the date and time when the page was generated. Setting this
+# to NO can help when comparing the output of multiple runs.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_TIMESTAMP        = NO
+
+# The LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
+# path from which the emoji images will be read. If a relative path is entered,
+# it will be relative to the LATEX_OUTPUT directory. If left blank the
+# LATEX_OUTPUT directory will be used.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EMOJI_DIRECTORY  =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
+# RTF output is optimized for Word 97 and may not look too pretty with other RTF
+# readers/editors.
+# The default value is: NO.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: rtf.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
+# contain hyperlink fields. The RTF file will contain links (just like the HTML
+# output) instead of page references. This makes the output suitable for online
+# browsing using Word or some other Word compatible readers that support those
+# fields.
+#
+# Note: WordPad (write) and others do not support links.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_HYPERLINKS         = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's
+# configuration file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+#
+# See also section "Doxygen usage" for information on how to generate the
+# default style sheet that doxygen normally uses.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_STYLESHEET_FILE    =
+
+# Set optional variables used in the generation of an RTF document. Syntax is
+# similar to doxygen's configuration file. A template extensions file can be
+# generated using doxygen -e rtf extensionFile.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_EXTENSIONS_FILE    =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
+# classes and files.
+# The default value is: NO.
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it. A directory man3 will be created inside the directory specified by
+# MAN_OUTPUT.
+# The default directory is: man.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to the generated
+# man pages. In case the manual section does not start with a number, the number
+# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
+# optional.
+# The default value is: .3.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_EXTENSION          = .3
+
+# The MAN_SUBDIR tag determines the name of the directory created within
+# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
+# MAN_EXTENSION with the initial . removed.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_SUBDIR             =
+
+# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
+# will generate one additional man file for each entity documented in the real
+# man page(s). These additional files only source the real man page, but without
+# them the man command would be unable to find the correct page.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
+# captures the structure of the code including all documentation.
+# The default value is: NO.
+
+GENERATE_XML           = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: xml.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_OUTPUT             = xml
+
+# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
+# listings (including syntax highlighting and cross-referencing information) to
+# the XML output. Note that enabling this will significantly increase the size
+# of the XML output.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_PROGRAMLISTING     = YES
+
+# If the XML_NS_MEMB_FILE_SCOPE tag is set to YES, doxygen will include
+# namespace members in file scope as well, matching the HTML output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_NS_MEMB_FILE_SCOPE = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the DOCBOOK output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
+# that can be used to generate PDF.
+# The default value is: NO.
+
+GENERATE_DOCBOOK       = YES
+
+# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
+# front of it.
+# The default directory is: docbook.
+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
+
+DOCBOOK_OUTPUT         = docbook
+
+#---------------------------------------------------------------------------
+# Configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
+# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
+# the structure of the code including all documentation. Note that this feature
+# is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
+# file that captures the structure of the code including all documentation.
+#
+# Note that this feature is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
+# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
+# output from the Perl module output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
+# formatted so it can be parsed by a human reader. This is useful if you want to
+# understand what is going on. On the other hand, if this tag is set to NO, the
+# size of the Perl module output will be much smaller and Perl will parse it
+# just the same.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file are
+# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
+# so different doxyrules.make files included by the same Makefile don't
+# overwrite each other's variables.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
+# C-preprocessor directives found in the sources and include files.
+# The default value is: YES.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
+# in the source code. If set to NO, only conditional compilation will be
+# performed. Macro expansion can be done in a controlled way by setting
+# EXPAND_ONLY_PREDEF to YES.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+MACRO_EXPANSION        = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
+# the macro expansion is limited to the macros specified with the PREDEFINED and
+# EXPAND_AS_DEFINED tags.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_ONLY_PREDEF     = YES
+
+# If the SEARCH_INCLUDES tag is set to YES, the include files in the
+# INCLUDE_PATH will be searched if a #include is found.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by the
+# preprocessor. Note that the INCLUDE_PATH is not recursive, so the setting of
+# RECURSIVE has no effect here.
+# This tag requires that the tag SEARCH_INCLUDES is set to YES.
+
+INCLUDE_PATH           = /usr/include/OGRE/
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will be
+# used.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+INCLUDE_FILE_PATTERNS  =
+
+# The PREDEFINED tag can be used to specify one or more macro names that are
+# defined before the preprocessor is started (similar to the -D option of e.g.
+# gcc). The argument of the tag is a list of macros of the form: name or
+# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
+# is assumed. To prevent a macro definition from being undefined via #undef or
+# recursively expanded use the := operator instead of the = operator.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+PREDEFINED             =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
+# tag can be used to specify a list of macro names that should be expanded. The
+# macro definition that is found in the sources will be used. Use the PREDEFINED
+# tag if you want to use a different macro definition that overrules the
+# definition found in the source code.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_AS_DEFINED      =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
+# remove all references to function-like macros that are alone on a line, have
+# an all uppercase name, and do not end with a semicolon. Such function macros
+# are typically used for boiler-plate code, and will confuse the parser if not
+# removed.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES tag can be used to specify one or more tag files. For each tag
+# file the location of the external documentation should be added. The format of
+# a tag file without this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where loc1 and loc2 can be relative or absolute paths or URLs. See the
+# section "Linking to external documentation" for more information about the use
+# of tag files.
+# Note: Each tag file must have a unique name (where the name does NOT include
+# the path). If a tag file is not located in the directory in which doxygen is
+# run, you must also specify the path to the tagfile here.
+
+TAGFILES               =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
+# tag file that is based on the input files it reads. See section "Linking to
+# external documentation" for more information about the usage of tag files.
+
+GENERATE_TAGFILE       =
+
+# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
+# the class index. If set to NO, only the inherited external classes will be
+# listed.
+# The default value is: NO.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will be
+# listed.
+# The default value is: YES.
+
+EXTERNAL_GROUPS        = YES
+
+# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
+# the related pages index. If set to NO, only the current project's pages will
+# be listed.
+# The default value is: YES.
+
+EXTERNAL_PAGES         = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# You can include diagrams made with dia in doxygen documentation. Doxygen will
+# then run dia to produce the diagram and insert it in the documentation. The
+# DIA_PATH tag allows you to specify the directory where the dia binary resides.
+# If left empty dia is assumed to be found in the default search path.
+
+DIA_PATH               =
+
+# If set to YES the inheritance and collaboration graphs will hide inheritance
+# and usage relations if the target is undocumented or is not a class.
+# The default value is: YES.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz (see:
+# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
+# Bell Labs. The other options in this section have no effect if this option is
+# set to NO
+# The default value is: YES.
+
+HAVE_DOT               = YES
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
+# to run in parallel. When set to 0 doxygen will base this on the number of
+# processors available in the system. You can set it explicitly to a value
+# larger than 0 to get control over the balance between CPU load and processing
+# speed.
+# Minimum value: 0, maximum value: 32, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_NUM_THREADS        = 0
+
+# When you want a differently looking font in the dot files that doxygen
+# generates you can specify the font name using DOT_FONTNAME. You need to make
+# sure dot is able to find the font, which can be done by putting it in a
+# standard location or by setting the DOTFONTPATH environment variable or by
+# setting DOT_FONTPATH to the directory containing the font.
+# The default value is: Helvetica.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTNAME           = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
+# dot graphs.
+# Minimum value: 4, maximum value: 24, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the default font as specified with
+# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
+# the path where dot can find it using this tag.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTPATH           =
+
+# If the CLASS_GRAPH tag is set to YES (or GRAPH) then doxygen will generate a
+# graph for each documented class showing the direct and indirect inheritance
+# relations. In case HAVE_DOT is set as well dot will be used to draw the graph,
+# otherwise the built-in generator will be used. If the CLASS_GRAPH tag is set
+# to TEXT the direct and indirect inheritance relations will be shown as texts /
+# links.
+# Possible values are: NO, YES, TEXT and GRAPH.
+# The default value is: YES.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
+# graph for each documented class showing the direct and indirect implementation
+# dependencies (inheritance, containment, and class references variables) of the
+# class with other documented classes.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+COLLABORATION_GRAPH    = YES
+
+# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
+# groups, showing the direct groups dependencies. See also the chapter Grouping
+# in the manual.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LOOK               = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
+# class node. If there are many fields or methods and many nodes the graph may
+# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
+# number of items for each type to make the size more manageable. Set this to 0
+# for no limit. Note that the threshold may be exceeded by 50% before the limit
+# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
+# but if the number exceeds 15, the total amount of fields shown is limited to
+# 10.
+# Minimum value: 0, maximum value: 100, default value: 10.
+# This tag requires that the tag UML_LOOK is set to YES.
+
+UML_LIMIT_NUM_FIELDS   = 10
+
+# If the DOT_UML_DETAILS tag is set to NO, doxygen will show attributes and
+# methods without types and arguments in the UML graphs. If the DOT_UML_DETAILS
+# tag is set to YES, doxygen will add type and arguments for attributes and
+# methods in the UML graphs. If the DOT_UML_DETAILS tag is set to NONE, doxygen
+# will not generate fields with class member information in the UML graphs. The
+# class diagrams will look similar to the default class diagrams but using UML
+# notation for the relationships.
+# Possible values are: NO, YES and NONE.
+# The default value is: NO.
+# This tag requires that the tag UML_LOOK is set to YES.
+
+DOT_UML_DETAILS        = NO
+
+# The DOT_WRAP_THRESHOLD tag can be used to set the maximum number of characters
+# to display on a single line. If the actual line length exceeds this threshold
+# significantly it will wrapped across multiple lines. Some heuristics are apply
+# to avoid ugly line breaks.
+# Minimum value: 0, maximum value: 1000, default value: 17.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_WRAP_THRESHOLD     = 17
+
+# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
+# collaboration graphs will show the relations between templates and their
+# instances.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+TEMPLATE_RELATIONS     = NO
+
+# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
+# YES then doxygen will generate a graph for each documented file showing the
+# direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDE_GRAPH          = YES
+
+# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
+# set to YES then doxygen will generate a graph for each documented file showing
+# the direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command. Disabling a call graph can be
+# accomplished by means of the command \hidecallgraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command. Disabling a caller graph can be
+# accomplished by means of the command \hidecallergraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
+# hierarchy of all classes instead of a textual one.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
+# dependencies a directory has on other directories in a graphical way. The
+# dependency relations are determined by the #include relations between the
+# files in the directories.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DIRECTORY_GRAPH        = YES
+
+# The DIR_GRAPH_MAX_DEPTH tag can be used to limit the maximum number of levels
+# of child directories generated in directory dependency graphs by dot.
+# Minimum value: 1, maximum value: 25, default value: 1.
+# This tag requires that the tag DIRECTORY_GRAPH is set to YES.
+
+DIR_GRAPH_MAX_DEPTH    = 1
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. For an explanation of the image formats see the section
+# output formats in the documentation of the dot tool (Graphviz (see:
+# http://www.graphviz.org/)).
+# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
+# to make the SVG files visible in IE 9+ (other browsers do not have this
+# requirement).
+# Possible values are: png, jpg, jpg:cairo, jpg:cairo:gd, jpg:gd, jpg:gd:gd,
+# gif, gif:cairo, gif:cairo:gd, gif:gd, gif:gd:gd, svg, png:gd, png:gd:gd,
+# png:cairo, png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
+# png:gdiplus:gdiplus.
+# The default value is: png.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_IMAGE_FORMAT       = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+#
+# Note that this requires a modern browser other than Internet Explorer. Tested
+# and working are Firefox, Chrome, Safari, and Opera.
+# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
+# the SVG files visible. Older versions of IE do not have SVG support.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INTERACTIVE_SVG        = NO
+
+# The DOT_PATH tag can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_PATH               =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the \dotfile
+# command).
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOTFILE_DIRS           =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the \mscfile
+# command).
+
+MSCFILE_DIRS           =
+
+# The DIAFILE_DIRS tag can be used to specify one or more directories that
+# contain dia files that are included in the documentation (see the \diafile
+# command).
+
+DIAFILE_DIRS           =
+
+# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
+# path where java can find the plantuml.jar file or to the filename of jar file
+# to be used. If left blank, it is assumed PlantUML is not used or called during
+# a preprocessing step. Doxygen will generate a warning when it encounters a
+# \startuml command in this case and will not generate output for the diagram.
+
+PLANTUML_JAR_PATH      =
+
+# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
+# configuration file for plantuml.
+
+PLANTUML_CFG_FILE      =
+
+# When using plantuml, the specified paths are searched for files specified by
+# the !include statement in a plantuml block.
+
+PLANTUML_INCLUDE_PATH  =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
+# that will be shown in the graph. If the number of nodes in a graph becomes
+# larger than this value, doxygen will truncate the graph, which is visualized
+# by representing a node as a red box. Note that doxygen if the number of direct
+# children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
+# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+# Minimum value: 0, maximum value: 10000, default value: 50.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_GRAPH_MAX_NODES    = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
+# generated by dot. A depth value of 3 means that only nodes reachable from the
+# root by following a path via at most 3 edges will be shown. Nodes that lay
+# further from the root node will be omitted. Note that setting this option to 1
+# or 2 may greatly reduce the computation time needed for large code bases. Also
+# note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+# Minimum value: 0, maximum value: 1000, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+MAX_DOT_GRAPH_DEPTH    = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not seem
+# to support this out of the box.
+#
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10) support
+# this, this feature is disabled by default.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_MULTI_TARGETS      = NO
+
+# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
+# explaining the meaning of the various boxes and arrows in the dot generated
+# graphs.
+# Note: This tag requires that UML_LOOK isn't set, i.e. the doxygen internal
+# graphical representation for inheritance and collaboration diagrams is used.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate
+# files that are used to generate the various graphs.
+#
+# Note: This setting is not only used for dot files but also for msc temporary
+# files.
+# The default value is: YES.
+
+DOT_CLEANUP            = YES

+ 26 - 29
PlugIns/Data/CMakeLists.txt

@@ -1,59 +1,56 @@
-set(QGearsMain_SOURCE_DIR ../../QGearsMain)
+set(V-Gears_SOURCE_DIR ../../V-Gears)
 
-# define header and source files for the library
+# Define header and source files for the library.
 set(HEADER_FILES
-  ${QGearsMain_SOURCE_DIR}/include/QGearsPrerequisites.h
-  ${QGearsMain_SOURCE_DIR}/include/common/QGearsManualObject.h
-  ${QGearsMain_SOURCE_DIR}/include/common/QGearsStringUtil.h
-  ${QGearsMain_SOURCE_DIR}/include/common/TypeDefine.h
-  include/QGearsDataPlugin.h
+    ${V-Gears_SOURCE_DIR}/include/VGearsPrerequisites.h
+    ${V-Gears_SOURCE_DIR}/include/common/VGearsManualObject.h
+    ${V-Gears_SOURCE_DIR}/include/common/VGearsStringUtil.h
+    ${V-Gears_SOURCE_DIR}/include/common/TypeDefine.h
+    include/VGearsDataPlugin.h
 )
 set(SOURCE_FILES
-  ${QGearsMain_SOURCE_DIR}/src/common/QGearsManualObject.cpp
-  ${QGearsMain_SOURCE_DIR}/src/common/QGearsStringUtil.cpp
-  ${QGearsMain_SOURCE_DIR}/src/common/TypeDefine.cpp
-  src/QGearsDataPlugin.cpp
-  src/QGearsDataPluginDll.cpp
+    ${V-Gears_SOURCE_DIR}/src/common/VGearsManualObject.cpp
+    ${V-Gears_SOURCE_DIR}/src/common/VGearsStringUtil.cpp
+    ${V-Gears_SOURCE_DIR}/src/common/TypeDefine.cpp
+    src/VGearsDataPlugin.cpp
+    src/VGearsDataPluginDll.cpp
 )
 
 include_directories(
     ${OIS_INCLUDE_DIRS}
     ${OGRE_INCLUDE_DIRS}
     ${OGRE_SAMPLES_INCLUDEPATH}
-    ${QGearsMain_SOURCE_DIR}/include
+    ${V-Gears_SOURCE_DIR}/include
     ${CMAKE_CURRENT_SOURCE_DIR}/include
-    ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies
+    ${CMAKE_CURRENT_SOURCE_DIR}/../../lib
 )
 
-#defines
+# Defines.
 #add_definitions(-DBOOST_ALL_DYN_LINK)
 
 add_library(DataPlugin MODULE
-  ${HEADER_FILES}
-  ${SOURCE_FILES}
+    ${HEADER_FILES}
+    ${SOURCE_FILES}
 )
-SET_PROPERTY(TARGET DataPlugin PROPERTY FOLDER "q-gears")
+SET_PROPERTY(TARGET DataPlugin PROPERTY FOLDER "v-gears")
 
 set_target_properties(DataPlugin PROPERTIES
-  PREFIX ${PLUGIN_PREFIX}
-  OUTPUT_NAME Data
+    PREFIX ${PLUGIN_PREFIX}
+    OUTPUT_NAME Data
 )
 
 set(LIBRARIES
-  ${OGRE_LIBRARIES} 
-  FinalFantasy7
-  q-gears-data
+    ${OGRE_LIBRARIES}
+    v-gears-data
 )
 
 target_link_libraries(DataPlugin ${LIBRARIES})
 
-if(NOT QGEARS_STATIC)
-  set_target_properties(DataPlugin PROPERTIES
-    COMPILE_DEFINITIONS QGEARS_DATAPLUGIN_EXPORTS
-  )
+if(NOT VGEARS_STATIC)
+    set_target_properties(DataPlugin PROPERTIES COMPILE_DEFINITIONS VGEARS_DATAPLUGIN_EXPORTS)
     if(WIN32 OR APPLE)
-      install(TARGETS DataPlugin LIBRARY DESTINATION .)
+        install(TARGETS DataPlugin LIBRARY DESTINATION .)
     else()
-      install(TARGETS DataPlugin LIBRARY DESTINATION ./lib/q-gears/plugins/ )
+        install(TARGETS DataPlugin LIBRARY DESTINATION ./lib/v-gears/plugins/ )
     endif()
 endif()

+ 0 - 72
PlugIns/Data/include/QGearsDataPlugin.h

@@ -1,72 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-07-30 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsTexPlugin_H__
-#define __QGearsTexPlugin_H__
-
-#include <OgrePlugin.h>
-
-#include "data/QGearsBackgroundFileManager.h"
-#include "data/QGearsPaletteFileManager.h"
-#include "data/QGearsPFileManager.h"
-#include "data/QGearsHRCFileManager.h"
-#include "data/QGearsRSDFileManager.h"
-#include "data/QGearsTexCodec.h"
-
-namespace QGears {
-
-	/** Plugin instance for various FFVII Data Formats */
-    class DataPlugin : public Ogre::Plugin
-    {
-    public:
-        DataPlugin();
-
-        /// @copydoc Ogre::Plugin::getName
-        const Ogre::String& getName() const;
-
-        /// @copydoc Ogre::Plugin::install
-        void install();
-
-        /// @copydoc Ogre::Plugin::initialise
-        void initialise();
-
-        /// @copydoc Ogre::Plugin::shutdown
-        void shutdown();
-
-        /// @copydoc Ogre::Plugin::uninstall
-        void uninstall();
-
-        static const Ogre::String ms_plugin_name;
-
-    private:
-        PFileManager           *p_manager;
-        HRCFileManager         *hrc_manager;
-        RSDFileManager         *rsd_manager;
-        PaletteFileManager     *palette_manager;
-        BackgroundFileManager  *background_manager;
-
-    };
-}
-#endif // __QGearsTexPlugin_H__

+ 96 - 0
PlugIns/Data/include/VGearsDataPlugin.h

@@ -0,0 +1,96 @@
+/*
+ * Copyright (C) 2022 The V-Gears Team
+ *
+ * This file is part of V-Gears
+ *
+ * V-Gears is free software: you can redistribute it and/or modify it under
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 3.0 (GPLv3) of the License.
+ *
+ * V-Gears is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#pragma once
+
+#include <OgrePlugin.h>
+
+#include "data/VGearsBackgroundFileManager.h"
+#include "data/VGearsPaletteFileManager.h"
+#include "data/VGearsPFileManager.h"
+#include "data/VGearsHRCFileManager.h"
+#include "data/VGearsRSDFileManager.h"
+#include "data/VGearsTexCodec.h"
+
+namespace VGears {
+
+    /**
+     * Plugin instance for various FFVII Data Formats
+     */
+    class DataPlugin : public Ogre::Plugin{
+
+        public:
+
+            DataPlugin();
+
+            /**
+             * Retrieves the name fo the plugin.
+             */
+            const Ogre::String& getName() const;
+
+            /**
+             * Perform the plugin initial installation sequence.
+             */
+            void install();
+
+            /**
+             * Perform any tasks the plugin needs on system initialization.
+             */
+            void initialise();
+
+            /**
+             * Perform any tasks the plugin needs on system shut down.
+             */
+            void shutdown();
+
+            /**
+             * Perform the final plugin uninstallation sequence.
+             */
+            void uninstall();
+
+            /**
+             * The plugin name.
+             */
+            static const Ogre::String ms_plugin_name;
+
+        private:
+
+            /**
+             * The .P file manager.
+             */
+            PFileManager *p_manager_;
+
+            /**
+             * The HRC file manager.
+             */
+            HRCFileManager *hrc_manager_;
+
+            /**
+             * The RSD file manager.
+             */
+            RSDFileManager *rsd_manager_;
+
+            /**
+             * The palette file manager.
+             */
+            PaletteFileManager *palette_manager_;
+
+            /**
+             * The background file manager.
+             */
+            BackgroundFileManager *background_manager_;
+
+    };
+}

+ 0 - 0
PlugIns/Data/misc/QGearsData.def → PlugIns/Data/misc/VGearsData.def


+ 0 - 83
PlugIns/Data/src/QGearsDataPlugin.cpp

@@ -1,83 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-07-30 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#include "QGearsDataPlugin.h"
-
-#include "data/QGearsTexCodec.h"
-
-using Ogre::String;
-
-namespace QGears {
-    const String DataPlugin::ms_plugin_name( "Plugin for Various FFVII File Formats" );
-
-    //---------------------------------------------------------------------
-    DataPlugin::DataPlugin()
-    {
-    }
-
-    //---------------------------------------------------------------------
-    const String& DataPlugin::getName() const
-    {
-        return ms_plugin_name;
-    }
-
-    //---------------------------------------------------------------------
-    void DataPlugin::install()
-    {
-        //install called - create stuff here
-        TexCodec::install();
-    }
-
-    //---------------------------------------------------------------------
-    void DataPlugin::initialise()
-    {
-        //intialise called - register stuff here
-        TexCodec::initialise();
-        p_manager           = new PFileManager();
-        hrc_manager         = new HRCFileManager();
-        rsd_manager         = new RSDFileManager();
-        //palette_manager     = new PaletteFileManager();
-        //background_manager  = new BackgroundFileManager();
-    }
-
-    //---------------------------------------------------------------------
-    void DataPlugin::shutdown()
-    {
-        //shutdown called - unregister stuff here
-        TexCodec::shutdown();
-        delete p_manager;
-        delete hrc_manager;
-        delete rsd_manager;
-        //delete palette_manager;
-        //delete background_manager;
-    }
-
-    //---------------------------------------------------------------------
-    void DataPlugin::uninstall()
-    {
-        //uninstall called - delete stuff here
-        TexCodec::uninstall();
-    }
-}

+ 0 - 53
PlugIns/Data/src/QGearsDataPluginDll.cpp

@@ -1,53 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-07-30 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#include <OgreRoot.h>
-
-#include "QGearsDataPlugin.h"
-
-#ifndef QGEARS_STATIC_LIB
-
-namespace QGears
-{
-    DataPlugin* data_plugin( NULL );
-
-    extern "C" void _QGearsExport dllStartPlugin( void )
-    {
-        // Create new scene manager
-        data_plugin = new DataPlugin();
-
-        // Register
-        Ogre::Root::getSingleton().installPlugin( data_plugin );
-
-    }
-    extern "C" void _QGearsExport dllStopPlugin( void )
-    {
-	    Ogre::Root::getSingleton().uninstallPlugin( data_plugin );
-	    delete data_plugin;
-	    data_plugin = NULL;
-    }
-}
-
-#endif

+ 52 - 0
PlugIns/Data/src/VGearsDataPlugin.cpp

@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2022 The V-Gears Team
+ *
+ * This file is part of V-Gears
+ *
+ * V-Gears is free software: you can redistribute it and/or modify it under
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 3.0 (GPLv3) of the License.
+ *
+ * V-Gears is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include "VGearsDataPlugin.h"
+#include "data/VGearsTexCodec.h"
+
+using Ogre::String;
+
+namespace VGears {
+
+    const String DataPlugin::ms_plugin_name(
+      "Plugin for Various FFVII File Formats"
+    );
+
+    DataPlugin::DataPlugin(){}
+
+    const String& DataPlugin::getName() const{return ms_plugin_name;}
+
+    void DataPlugin::install(){TexCodec::install();}
+
+    void DataPlugin::initialise(){
+        TexCodec::initialise();
+        p_manager_           = new PFileManager();
+        hrc_manager_         = new HRCFileManager();
+        rsd_manager_         = new RSDFileManager();
+        //palette_manager_     = new PaletteFileManager();
+        //background_manager_  = new BackgroundFileManager();
+    }
+
+    void DataPlugin::shutdown(){
+        TexCodec::shutdown();
+        delete p_manager_;
+        delete hrc_manager_;
+        delete rsd_manager_;
+        //delete palette_manager_;
+        //delete background_manager_;
+    }
+
+    void DataPlugin::uninstall(){TexCodec::uninstall();}
+}

+ 37 - 0
PlugIns/Data/src/VGearsDataPluginDll.cpp

@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2022 The V-Gears Team
+ *
+ * This file is part of V-Gears
+ *
+ * V-Gears is free software: you can redistribute it and/or modify it under
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 3.0 (GPLv3) of the License.
+ *
+ * V-Gears is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <OgreRoot.h>
+#include "VGearsDataPlugin.h"
+
+#ifndef VGEARS_STATIC_LIB
+
+namespace VGears{
+
+    DataPlugin* data_plugin(NULL);
+
+    extern "C" void _VGearsExport dllStartPlugin( void ){
+        data_plugin = new DataPlugin();
+        // Register.
+        Ogre::Root::getSingleton().installPlugin(data_plugin);
+    }
+    extern "C" void _VGearsExport dllStopPlugin( void ){
+        Ogre::Root::getSingleton().uninstallPlugin(data_plugin);
+        delete data_plugin;
+        data_plugin = NULL;
+    }
+}
+
+#endif

+ 74 - 99
PlugIns/Data/test/tex_file_info.cpp

@@ -1,39 +1,26 @@
 /*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-07-31 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
+ * Copyright (C) 2022 The V-Gears Team
+ *
+ * This file is part of V-Gears
+ *
+ * V-Gears is free software: you can redistribute it and/or modify it under
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation, version 3.0 (GPLv3) of the License.
+ *
+ * V-Gears is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
 #include <algorithm>
 #include <cstdio>
-
 #include <boost/algorithm/string/predicate.hpp>
 #include <boost/filesystem.hpp>
 #include <boost/filesystem/fstream.hpp>
 #include <boost/program_options.hpp>
-
 #include <OgreDataStream.h>
-
-#include "data/QGearsTexFile.h"
+#include "data/VGearsTexFile.h"
 
 using std::back_inserter;
 using std::copy;
@@ -46,121 +33,109 @@ using std::string;
 namespace bfs = boost::filesystem;
 namespace bpo = boost::program_options;
 
-void pintFileInfo( const bfs::path &tex_path )
-{
+void pintFileInfo(const bfs::path &tex_path){
     cout << endl << "TX Image File Info"
-         << endl << " filename: " << tex_path.filename().string();
-
-    bfs::ifstream *ifs(  OGRE_NEW_T( bfs::ifstream, Ogre::MEMCATEGORY_GENERAL )( tex_path, bfs::ifstream::binary ) );
-    Ogre::FileStreamDataStream *stream( OGRE_NEW Ogre::FileStreamDataStream( ifs ) );
-    Ogre::DataStreamPtr input( stream );
-
-    QGears::TexFile tex;
-    tex.readHeader( input );
-
+      << endl << " filename: " << tex_path.filename().string();
+    bfs::ifstream *ifs(OGRE_NEW_T(bfs::ifstream, Ogre::MEMCATEGORY_GENERAL)(tex_path, bfs::ifstream::binary));
+    Ogre::FileStreamDataStream *stream(OGRE_NEW Ogre::FileStreamDataStream(ifs));
+    Ogre::DataStreamPtr input(stream);
+    VGears::TexFile tex;
+    tex.readHeader(input);
     cout << endl << " size: "
-         << tex.m_header.image_data.width
-         << "x" << tex.m_header.image_data.height
-         << "x" << tex.m_header.image_data.bit_depth
-         << endl << " pitch: " << tex.m_header.image_data.pitch
-         << endl << " color_key_flag: " << tex.m_header.color_key_flag
-         << endl << "Palette:"
-         << endl << " type              : " << tex.m_header.palette_type
-         << endl << " count             : " << tex.m_header.palette_count
-         << endl << " index_bits        : " << tex.m_header.palette_data.index_bits
-         << endl << " flag              : " << tex.m_header.palette_data.flag
-         << endl << " total_color_count : " << tex.m_header.palette_total_color_count
-         << endl << " total_color_count : " << tex.m_header.palette_data.total_color_count
-         << endl << " colors_per_palette: " << tex.m_header.palette_data.colors_per_palette
-         << endl << " unknown_CC        : " << tex.m_header.unknown_0xCC
-         ;
-    if ( tex.m_header.palette_data.flag )
-    {
-    cout << endl << " mask_red   : " << tex.m_header.pixel_format.bit_mask.red
-         << endl << " mask_green : " << tex.m_header.pixel_format.bit_mask.green
-         << endl << " mask_blue  : " << tex.m_header.pixel_format.bit_mask.blue
-         << endl << " mask_alpha : " << tex.m_header.pixel_format.bit_mask.alpha
-         ;
+      << tex.m_header.image_data.width
+      << "x" << tex.m_header.image_data.height
+      << "x" << tex.m_header.image_data.bit_depth
+      << endl << " pitch: " << tex.m_header.image_data.pitch
+      << endl << " color_key_flag: " << tex.m_header.color_key_flag
+      << endl << "Palette:"
+      << endl << " type              : " << tex.m_header.palette_type
+      << endl << " count             : " << tex.m_header.palette_count
+      << endl << " index_bits        : "
+      << tex.m_header.palette_data.index_bits
+      << endl << " flag              : " << tex.m_header.palette_data.flag
+      << endl << " total_color_count : "
+      << tex.m_header.palette_total_color_count
+      << endl << " total_color_count : "
+      << tex.m_header.palette_data.total_color_count
+      << endl << " colors_per_palette: "
+      << tex.m_header.palette_data.colors_per_palette
+      << endl << " unknown_CC        : " << tex.m_header.unknown_0xCC;
+    if (tex.m_header.palette_data.flag){
+        cout << endl
+          << " mask_red   : " << tex.m_header.pixel_format.bit_mask.red
+          << endl << " mask_green : "
+          << tex.m_header.pixel_format.bit_mask.green
+          << endl << " mask_blue  : " << tex.m_header.pixel_format.bit_mask.blue
+          << endl << " mask_alpha : "
+          << tex.m_header.pixel_format.bit_mask.alpha;
     }
     cout << endl;
 }
 
-int
-main(int ac, char *av[])
-{
-    const char* PO_HELP( "help" );
-    const char* PO_INPUT_PATHS( "input-paths" );
-    const string TEX_EXT( ".tex" );
+int main(int ac, char *av[]){
+    const char* PO_HELP("help");
+    const char* PO_INPUT_PATHS("input-paths");
+    const string TEX_EXT(".tex");
 
     typedef vector<bfs::path> t_InputPaths;
 
     try {
         bpo::options_description generic("Generic options");
         generic.add_options()
-            ( PO_HELP, "produce help message" )
+            (PO_HELP, "produce help message")
             ;
 
         // Hidden options, will be allowed both on command line and
         // in config file, but will not be shown to the user.
         bpo::options_description hidden("Hidden options");
         hidden.add_options()
-            ( PO_INPUT_PATHS, bpo::value< t_InputPaths >()->required(), "input paths to files or directories" )
+            (PO_INPUT_PATHS, bpo::value< t_InputPaths >()->required(), "input paths to files or directories")
             ;
 
         bpo::positional_options_description p;
-        p.add( PO_INPUT_PATHS, -1 );
+        p.add(PO_INPUT_PATHS, -1);
 
         bpo::options_description cmdline_options;
-        cmdline_options.add( generic ).add( hidden );
+        cmdline_options.add(generic).add(hidden);
         bpo::variables_map vm;
-        bpo::store( bpo::command_line_parser( ac, av ).options( cmdline_options ).positional( p ).run(), vm );
+        bpo::store(bpo::command_line_parser(ac, av).options(cmdline_options).positional(p).run(), vm);
 
-        if ( vm.count( PO_HELP ) )
-        {
-            bfs::path self( av[0] );
+        if (vm.count(PO_HELP)){
+            bfs::path self(av[0]);
             cout << "Usage: " << self.stem().string() << " [options] file|path...\n";
             cout << generic << "\n";
             return 0;
         }
 
-        bpo::notify( vm );
+        bpo::notify(vm);
 
-        if ( vm.count( PO_INPUT_PATHS ) )
-        {
-            t_InputPaths input( vm[ PO_INPUT_PATHS ].as< t_InputPaths >() );
+        if (vm.count(PO_INPUT_PATHS)){
+            t_InputPaths input(vm[ PO_INPUT_PATHS ].as< t_InputPaths >());
             t_InputPaths paths;
 
-            for ( t_InputPaths::const_iterator it( input.begin() ); it != input.end(); ++it )
-            {
-                if( bfs::exists( *it ) )
-                {
-                    if( bfs::is_directory( *it ) )
-                    {
-                        copy( bfs::recursive_directory_iterator( *it ), bfs::recursive_directory_iterator(), back_inserter( paths ) );
+            for (t_InputPaths::const_iterator it(input.begin()); it != input.end(); ++it){
+                if(bfs::exists(*it)){
+                    if(bfs::is_directory(*it)){
+                        copy(bfs::recursive_directory_iterator(*it), bfs::recursive_directory_iterator(), back_inserter(paths));
                     }
-                    else
-                    {
-                        paths.push_back( *it );
+                    else{
+                        paths.push_back(*it);
                     }
                 }
             }
 
-            for ( t_InputPaths::const_iterator it( paths.begin() ); it != paths.end(); ++it )
-            {
-                if( bfs::is_regular_file( *it ) )
-                {
-                    string ext( it->extension().string() );
-                    if( boost::iequals( ext, TEX_EXT ) )
-                    {
-                        pintFileInfo( *it );
+            for (t_InputPaths::const_iterator it(paths.begin()); it != paths.end(); ++it){
+                if(bfs::is_regular_file(*it)){
+                    string ext(it->extension().string());
+                    if(boost::iequals(ext, TEX_EXT)){
+                        pintFileInfo(*it);
                     }
                 }
             }
         }
 
     }
-    catch( const bfs::filesystem_error& e )
-    {
+    catch(const bfs::filesystem_error& e){
         cout << e.what() << endl;
         return 1;
     }

+ 55 - 55
PlugIns/Data/test/tex_file_test.cpp

@@ -28,93 +28,93 @@ THE SOFTWARE.
 
 #include <OgreDataStream.h>
 
-#include "data/QGearsTexFile.h"
+#include "data/VGearsTexFile.h"
 
-#define BOOST_TEST_MODULE QGearsTexFile
+#define BOOST_TEST_MODULE VGearsTexFile
 #include <boost/test/unit_test.hpp>
 
 BOOST_AUTO_TEST_CASE( header_size )
 {
-    BOOST_CHECK_EQUAL( 0x18, sizeof( QGears::TexFile::BitData     ) );
-    BOOST_CHECK_EQUAL( 0x10, sizeof( QGears::TexFile::ImageData   ) );
-    BOOST_CHECK_EQUAL( 0x14, sizeof( QGears::TexFile::PaletteData ) );
-    BOOST_CHECK_EQUAL( 0x10, sizeof( QGears::TexFile::RGBAData    ) );
-    BOOST_CHECK_EQUAL( 0x58, sizeof( QGears::TexFile::PixelFormat ) );
-    BOOST_CHECK_EQUAL( 0xEC, sizeof( QGears::TexFile::Header      ) );
-
-    QGears::TexFile::Header header;
-    BOOST_CHECK_EQUAL( sizeof( QGears::TexFile::Header ), sizeof( header ) );
+    BOOST_CHECK_EQUAL( 0x18, sizeof( VGears::TexFile::BitData     ) );
+    BOOST_CHECK_EQUAL( 0x10, sizeof( VGears::TexFile::ImageData   ) );
+    BOOST_CHECK_EQUAL( 0x14, sizeof( VGears::TexFile::PaletteData ) );
+    BOOST_CHECK_EQUAL( 0x10, sizeof( VGears::TexFile::RGBAData    ) );
+    BOOST_CHECK_EQUAL( 0x58, sizeof( VGears::TexFile::PixelFormat ) );
+    BOOST_CHECK_EQUAL( 0xEC, sizeof( VGears::TexFile::Header      ) );
+
+    VGears::TexFile::Header header;
+    BOOST_CHECK_EQUAL( sizeof( VGears::TexFile::Header ), sizeof( header ) );
 }
 
 BOOST_AUTO_TEST_CASE( bit_data_offset )
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::BitData, color_min ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::BitData, color_max ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::BitData, alpha_min ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::TexFile::BitData, alpha_max ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::TexFile::BitData, pixel_min ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::TexFile::BitData, pixel_max ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::BitData, color_min ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::BitData, color_max ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::BitData, alpha_min ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::TexFile::BitData, alpha_max ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::TexFile::BitData, pixel_min ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::TexFile::BitData, pixel_max ) );
 }
 
 BOOST_AUTO_TEST_CASE( palette_data_offset )
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::PaletteData, flag        ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::PaletteData, index_bits  ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::PaletteData, index_8bit  ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::TexFile::PaletteData, total_color_count ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::TexFile::PaletteData, colors_per_palette ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::PaletteData, flag        ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::PaletteData, index_bits  ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::PaletteData, index_8bit  ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::TexFile::PaletteData, total_color_count ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::TexFile::PaletteData, colors_per_palette ) );
 }
 
 BOOST_AUTO_TEST_CASE( image_data_offset )
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::ImageData, bit_depth  ) );
-    BOOST_CHECK_EQUAL( 0x4, offsetof( QGears::TexFile::ImageData, width  ) );
-    BOOST_CHECK_EQUAL( 0x8, offsetof( QGears::TexFile::ImageData, height ) );
-    BOOST_CHECK_EQUAL( 0xC, offsetof( QGears::TexFile::ImageData, pitch  ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::ImageData, bit_depth  ) );
+    BOOST_CHECK_EQUAL( 0x4, offsetof( VGears::TexFile::ImageData, width  ) );
+    BOOST_CHECK_EQUAL( 0x8, offsetof( VGears::TexFile::ImageData, height ) );
+    BOOST_CHECK_EQUAL( 0xC, offsetof( VGears::TexFile::ImageData, pitch  ) );
 }
 
 BOOST_AUTO_TEST_CASE( rgba_data_offset )
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::RGBAData, red   ) );
-    BOOST_CHECK_EQUAL( 0x4, offsetof( QGears::TexFile::RGBAData, green ) );
-    BOOST_CHECK_EQUAL( 0x8, offsetof( QGears::TexFile::RGBAData, blue  ) );
-    BOOST_CHECK_EQUAL( 0xC, offsetof( QGears::TexFile::RGBAData, alpha ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::RGBAData, red   ) );
+    BOOST_CHECK_EQUAL( 0x4, offsetof( VGears::TexFile::RGBAData, green ) );
+    BOOST_CHECK_EQUAL( 0x8, offsetof( VGears::TexFile::RGBAData, blue  ) );
+    BOOST_CHECK_EQUAL( 0xC, offsetof( VGears::TexFile::RGBAData, alpha ) );
 }
 
 BOOST_AUTO_TEST_CASE( pixel_format_offset )
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::PixelFormat, bits_per_pixel   ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::PixelFormat, bytes_per_pixel  ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::PixelFormat, bit_count        ) );
-    BOOST_CHECK_EQUAL( 0x18, offsetof( QGears::TexFile::PixelFormat, bit_mask         ) );
-    BOOST_CHECK_EQUAL( 0x28, offsetof( QGears::TexFile::PixelFormat, bit_shift        ) );
-    BOOST_CHECK_EQUAL( 0x38, offsetof( QGears::TexFile::PixelFormat, bit_count_unused ) );
-    BOOST_CHECK_EQUAL( 0x48, offsetof( QGears::TexFile::PixelFormat, shades           ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::PixelFormat, bits_per_pixel   ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::PixelFormat, bytes_per_pixel  ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::PixelFormat, bit_count        ) );
+    BOOST_CHECK_EQUAL( 0x18, offsetof( VGears::TexFile::PixelFormat, bit_mask         ) );
+    BOOST_CHECK_EQUAL( 0x28, offsetof( VGears::TexFile::PixelFormat, bit_shift        ) );
+    BOOST_CHECK_EQUAL( 0x38, offsetof( VGears::TexFile::PixelFormat, bit_count_unused ) );
+    BOOST_CHECK_EQUAL( 0x48, offsetof( VGears::TexFile::PixelFormat, shades           ) );
 }
 
 BOOST_AUTO_TEST_CASE( header_offset )
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::Header, version              ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::Header, color_key_flag       ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::TexFile::Header, bit_data             ) );
-    BOOST_CHECK_EQUAL( 0x30, offsetof( QGears::TexFile::Header, palette_count        ) );
-    BOOST_CHECK_EQUAL( 0x34, offsetof( QGears::TexFile::Header, palette_total_color_count  ) );
-    BOOST_CHECK_EQUAL( 0x38, offsetof( QGears::TexFile::Header, image_data           ) );
-    BOOST_CHECK_EQUAL( 0x4C, offsetof( QGears::TexFile::Header, palette_data         ) );
-    BOOST_CHECK_EQUAL( 0x64, offsetof( QGears::TexFile::Header, pixel_format         ) );
-    BOOST_CHECK_EQUAL( 0xBC, offsetof( QGears::TexFile::Header, color_key_array_flag ) );
-    BOOST_CHECK_EQUAL( 0xC4, offsetof( QGears::TexFile::Header, reference_alpha      ) );
-    BOOST_CHECK_EQUAL( 0xCC, offsetof( QGears::TexFile::Header, unknown_0xCC         ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::Header, version              ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::Header, color_key_flag       ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::TexFile::Header, bit_data             ) );
+    BOOST_CHECK_EQUAL( 0x30, offsetof( VGears::TexFile::Header, palette_count        ) );
+    BOOST_CHECK_EQUAL( 0x34, offsetof( VGears::TexFile::Header, palette_total_color_count  ) );
+    BOOST_CHECK_EQUAL( 0x38, offsetof( VGears::TexFile::Header, image_data           ) );
+    BOOST_CHECK_EQUAL( 0x4C, offsetof( VGears::TexFile::Header, palette_data         ) );
+    BOOST_CHECK_EQUAL( 0x64, offsetof( VGears::TexFile::Header, pixel_format         ) );
+    BOOST_CHECK_EQUAL( 0xBC, offsetof( VGears::TexFile::Header, color_key_array_flag ) );
+    BOOST_CHECK_EQUAL( 0xC4, offsetof( VGears::TexFile::Header, reference_alpha      ) );
+    BOOST_CHECK_EQUAL( 0xCC, offsetof( VGears::TexFile::Header, unknown_0xCC         ) );
 }
 
 BOOST_AUTO_TEST_CASE( color_offset )
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, all        ) );
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, comp       ) );
-    BOOST_CHECK_EQUAL( 0x3, offsetof( QGears::TexFile::Color, comp.alpha ) );
-    BOOST_CHECK_EQUAL( 0x2, offsetof( QGears::TexFile::Color, comp.red   ) );
-    BOOST_CHECK_EQUAL( 0x1, offsetof( QGears::TexFile::Color, comp.green ) );
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, comp.blue  ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, all        ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, comp       ) );
+    BOOST_CHECK_EQUAL( 0x3, offsetof( VGears::TexFile::Color, comp.alpha ) );
+    BOOST_CHECK_EQUAL( 0x2, offsetof( VGears::TexFile::Color, comp.red   ) );
+    BOOST_CHECK_EQUAL( 0x1, offsetof( VGears::TexFile::Color, comp.green ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, comp.blue  ) );
 }
 
 BOOST_AUTO_TEST_CASE( read_file )
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
     BOOST_REQUIRE( input->isReadable() );
 
-    QGears::TexFile tex;
+    VGears::TexFile tex;
     tex.read( input );
 
     BOOST_CHECK_EQUAL( 0x80, tex.m_header.image_data.width );

+ 0 - 405
QGearsMain/CMakeLists.txt

@@ -1,405 +0,0 @@
-# define header and source files for the library
-set(HEADER_FILES
-  include/modules/worldmap/WorldMapModule.h
-
-  include/common/QGearsManualObject.h
-  include/common/QGearsResource.h
-  include/common/QGearsStringUtil.h
-  include/common/TypeDefine.h
-  include/common/LzsFile.h
-  include/common/File.h
-  include/common/FileSystem.h
-  include/common/make_unique.h
-  include/map/QGearsBackground2DFile.h
-  include/map/QGearsBackground2DFileManager.h
-  include/map/QGearsBackground2DFileXMLSerializer.h
-  include/map/QGearsTile.h
-  include/map/QGearsMapFile.h
-  include/map/QGearsMapFileManager.h
-  include/map/QGearsMapFileXMLSerializer.h
-  include/map/QGearsWalkmeshFile.h
-  include/map/QGearsWalkmeshFileManager.h
-  include/map/QGearsWalkmeshFileXMLSerializer.h
-  include/LuaIncludes.h
-  include/QGearsGameState.h
-  include/QGearsPrerequisites.h
-  include/core/particles/emitters/ParticlePointEmitter.h
-  include/core/particles/emitters/ParticlePointEmitterFactory.h
-  include/core/particles/renderer/ParticleEntityAdditionalData.h
-  include/core/particles/renderer/ParticleEntityRenderer.h
-  include/core/particles/renderer/ParticleEntityRendererDictionary.h
-  include/core/particles/renderer/ParticleEntityRendererFactory.h
-  include/core/particles/Particle.h
-  include/core/particles/ParticleAdditionalData.h
-  include/core/particles/ParticleEmitter.h
-  include/core/particles/ParticleEmitterDictionary.h
-  include/core/particles/ParticleEmitterFactory.h
-  include/core/particles/ParticleEmitterTranslator.h
-  include/core/particles/ParticlePool.h
-  include/core/particles/ParticlePoolMap.h
-  include/core/particles/ParticleRenderer.h
-  include/core/particles/ParticleRendererFactory.h
-  include/core/particles/ParticleRendererTranslator.h
-  include/core/particles/ParticleSystem.h
-  include/core/particles/ParticleSystemFactory.h
-  include/core/particles/ParticleSystemManager.h
-  include/core/particles/ParticleSystemTranslator.h
-  include/core/particles/ParticleSystemTranslatorManager.h
-  include/core/particles/ParticleTechnique.h
-  include/core/particles/ParticleTechniqueTranslator.h
-  include/core/particles/ParticleVisual.h
-  include/core/Assert.h
-  include/core/Background2D.h
-  include/core/Background2DAnimation.h
-  include/core/CameraManager.h
-  include/core/CameraManagerCommands.h
-  include/core/ConfigCmd.h
-  include/core/ConfigCmdManager.h
-  include/core/ConfigCmdManagerCommands.h
-  include/core/ConfigFile.h
-  include/core/ConfigVar.h
-  include/core/ConfigVarManager.h
-  include/core/Console.h
-  include/core/DebugDraw.h
-  include/core/Entity.h
-  include/core/EntityCollision.h
-  include/core/EntityDirection.h
-  include/core/EntityManager.h
-  include/core/EntityModel.h
-  include/core/EntityPoint.h
-  include/core/EntityTrigger.h
-  include/core/Event.h
-  include/core/GameFrameListner.h
-  include/core/InputManager.h
-  include/core/InputManagerCommands.h
-  include/core/Logger.h
-  include/core/Module.h
-  include/core/ScriptManager.h
-  include/core/ScriptManagerBinds.h
-  include/core/ScriptManagerCommands.h
-  include/core/Timer.h
-  include/core/UiAnimation.h
-  include/core/UiFont.h
-  include/core/UiManager.h
-  include/core/UiSprite.h
-  include/core/UiTextArea.h
-  include/core/UiWidget.h
-  include/core/Utilites.h
-  include/core/Walkmesh.h
-  include/core/XmlBackground2DFile.h
-  include/core/XmlFile.h
-  include/core/XmlFontFile.h
-  include/core/XmlFontsFile.h
-  include/core/XmlMapFile.h
-  #include/core/XmlMapsFile.h
-  include/core/XmlPrototypesFile.h
-  include/core/XmlScreenFile.h
-  include/core/XmlScreensFile.h
-  include/core/XmlScriptsFile.h
-  include/core/XmlTextFile.h
-  include/core/XmlTextsFile.h
-  include/core/DialogsManager.h
-  include/core/ScriptManagerBinds.h
-  include/core/TextManager.h
-  include/core/TextManagerCommands.h
-  #include/viewer/ViewerModule.h
-  include/data/QGearsXMLSerializer.h
-)
-
-set(HEADER_FILES_DATA
-  include/common/QGearsApplication.h
-include/data/worldmap/MapFile.h
-  include/data/worldmap/MapFileManager.h
-  include/data/worldmap/MapFileSerializer.h
-  include/data/worldmap/TxzFile.h
-  include/data/worldmap/TxzFileManager.h
-  include/data/worldmap/TxzFileSerializer.h
-  include/data/QGearsAFile.h
-  include/data/QGearsAFileManager.h
-  include/data/QGearsAFileSerializer.h
-  include/data/QGearsBackgroundFile.h
-  include/data/QGearsBackgroundFileManager.h
-  include/data/QGearsBackgroundFileSerializer.h
-  include/data/QGearsBackgroundTextureLoader.h
-  include/data/QGearsCameraMatrixFile.h
-  include/data/QGearsCameraMatrixFileManager.h
-  include/data/QGearsCameraMatrixFileSerializer.h
-  include/data/QGearsFLevelBackground2DLoader.h
-  include/data/QGearsFLevelFile.h
-  include/data/QGearsFLevelFileManager.h
-  include/data/QGearsFLevelFileSerializer.h
-  include/data/QGearsFLevelTextureLoader.h
-  include/data/QGearsHRCFile.h
-  include/data/QGearsHRCFileManager.h
-  include/data/QGearsHRCFileSerializer.h
-  include/data/QGearsHRCMeshLoader.h
-  include/data/QGearsHRCSkeletonLoader.h
-  include/data/QGearsLGPArchive.h
-  include/data/QGearsLGPArchiveFactory.h
-  include/data/QGearsLGPArchiveSerializer.h
-  include/data/QGearsLZSDataStream.h
-  include/data/QGearsLZSFLevelFile.h
-  include/data/QGearsLZSFLevelFileManager.h
-  include/data/QGearsPaletteFile.h
-  include/data/QGearsPaletteFileManager.h
-  include/data/QGearsPaletteFileSerializer.h
-  include/data/QGearsPFile.h
-  include/data/QGearsPFileManager.h
-  include/data/QGearsPFileSerializer.h
-  include/data/QGearsRSDFile.h
-  include/data/QGearsRSDFileManager.h
-  include/data/QGearsRSDFileSerializer.h
-  include/data/QGearsSerializer.h
-  include/data/QGearsTexCodec.h
-  include/data/QGearsTexFile.h
-  include/data/QGearsTriggersFile.h
-  include/data/QGearsMapListFile.h
-)
-
-set(SOURCE_FILES_DATA
-  src/common/QGearsApplication.cpp
-  src/data/QGearsAFile.cpp
-  src/data/QGearsAFileManager.cpp
-  src/data/QGearsAFileSerializer.cpp
-  src/data/worldmap/MapFile.cpp
-  src/data/worldmap/MapFileManager.cpp
-  src/data/worldmap/MapFileSerializer.cpp
-  src/data/worldmap/TxzFile.cpp
-  src/data/worldmap/TxzFileManager.cpp
-  src/data/worldmap/TxzFileSerializer.cpp
-  src/data/QGearsBackgroundFile.cpp
-  src/data/QGearsBackgroundFileManager.cpp
-  src/data/QGearsBackgroundFileSerializer.cpp
-  src/data/QGearsBackgroundTextureLoader.cpp
-  src/data/QGearsCameraMatrixFile.cpp
-  src/data/QGearsCameraMatrixFileManager.cpp
-  src/data/QGearsCameraMatrixFileSerializer.cpp
-  src/data/QGearsFLevelBackground2DLoader.cpp
-  src/data/QGearsFLevelFile.cpp
-  src/data/QGearsFLevelFileManager.cpp
-  src/data/QGearsFLevelFileSerializer.cpp
-  src/data/QGearsFLevelTextureLoader.cpp
-  src/data/QGearsHRCFile.cpp
-  src/data/QGearsHRCFileManager.cpp
-  src/data/QGearsHRCFileSerializer.cpp
-  src/data/QGearsHRCMeshLoader.cpp
-  src/data/QGearsHRCSkeletonLoader.cpp
-  src/data/QGearsLGPArchive.cpp
-  src/data/QGearsLGPArchiveFactory.cpp
-  src/data/QGearsLGPArchiveSerializer.cpp
-  src/data/QGearsLZSDataStream.cpp
-  src/data/QGearsLZSFLevelFile.cpp
-  src/data/QGearsLZSFLevelFileManager.cpp
-  src/data/QGearsPaletteFile.cpp
-  src/data/QGearsPaletteFileManager.cpp
-  src/data/QGearsPaletteFileSerializer.cpp
-  src/data/QGearsPFile.cpp
-  src/data/QGearsPFileManager.cpp
-  src/data/QGearsPFileSerializer.cpp
-  src/data/QGearsRSDFile.cpp
-  src/data/QGearsRSDFileManager.cpp
-  src/data/QGearsRSDFileSerializer.cpp
-  src/data/QGearsSerializer.cpp
-  src/data/QGearsTexCodec.cpp
-  src/data/QGearsTexFile.cpp
-  src/data/QGearsTriggersFile.cpp
-  src/data/QGearsMapListFile.cpp
-)
-
-set(SOURCE_FILES
-  src/modules/worldmap/WorldMapModule.cpp
-
-  src/common/QGearsManualObject.cpp
-  src/common/QGearsResource.cpp
-  src/common/QGearsStringUtil.cpp
-  src/common/TypeDefine.cpp
-  src/common/LzsFile.cpp
-  src/common/File.cpp
-  src/common/FileSystem.cpp
-  src/core/particles/emitters/ParticlePointEmitter.cpp
-  src/core/particles/Particle.cpp
-  src/core/particles/ParticleEmitter.cpp
-  src/core/particles/ParticleEmitterDictionary.cpp
-  src/core/particles/ParticleEmitterTranslator.cpp
-  src/core/particles/ParticleRenderer.cpp
-  src/core/particles/ParticleRendererTranslator.cpp
-  src/core/particles/ParticleSystem.cpp
-  src/core/particles/ParticleSystemFactory.cpp
-  src/core/particles/ParticleSystemManager.cpp
-  src/core/particles/ParticleSystemTranslator.cpp
-  src/core/particles/ParticleSystemTranslatorManager.cpp
-  src/core/particles/ParticleTechnique.cpp
-  src/core/particles/ParticleTechniqueTranslator.cpp
-  src/core/particles/ParticleVisual.cpp
-  src/core/particles/renderer/ParticleEntityRenderer.cpp
-  src/core/particles/renderer/ParticleEntityRendererDictionary.cpp
-  src/core/Background2D.cpp
-  src/core/Background2DAnimation.cpp
-  src/core/CameraManager.cpp
-  src/core/ConfigCmd.cpp
-  src/core/ConfigCmdManager.cpp
-  src/core/ConfigFile.cpp
-  src/core/ConfigVar.cpp
-  src/core/ConfigVarManager.cpp
-  src/core/Console.cpp
-  src/core/DebugDraw.cpp
-  src/core/Entity.cpp
-  src/core/EntityCollision.cpp
-  src/core/EntityDirection.cpp
-  src/core/EntityManager.cpp
-  src/core/EntityModel.cpp
-  src/core/EntityPoint.cpp
-  src/core/EntityTrigger.cpp
-  src/core/GameFrameListner.cpp
-  src/core/InputManager.cpp
-  src/core/ScriptManager.cpp
-  src/core/Timer.cpp
-  src/core/UiAnimation.cpp
-  src/core/UiFont.cpp
-  src/core/UiManager.cpp
-  src/core/UiSprite.cpp
-  src/core/UiTextArea.cpp
-  src/core/UiWidget.cpp
-  src/core/Utilites.cpp
-  src/core/Walkmesh.cpp
-  src/core/XmlBackground2DFile.cpp
-  src/core/XmlFile.cpp
-  src/core/XmlFontFile.cpp
-  src/core/XmlFontsFile.cpp
-  src/core/XmlMapFile.cpp
-  src/core/XmlMapsFile.cpp
-  src/core/XmlPrototypesFile.cpp
-  src/core/XmlScreenFile.cpp
-  src/core/XmlScreensFile.cpp
-  src/core/XmlScriptsFile.cpp
-  src/core/XmlTextFile.cpp
-  src/core/XmlTextsFile.cpp
-  src/core/DialogsManager.cpp
-  src/core/TextManager.cpp
-  src/map/QGearsBackground2DFile.cpp
-  src/map/QGearsBackground2DFileManager.cpp
-  src/map/QGearsBackground2DFileXMLSerializer.cpp
-  src/map/QGearsMapFile.cpp
-  src/map/QGearsMapFileManager.cpp
-  src/map/QGearsMapFileXMLSerializer.cpp
-  src/map/QGearsWalkmeshFile.cpp
-  src/map/QGearsWalkmeshFileManager.cpp
-  src/map/QGearsWalkmeshFileXMLSerializer.cpp
-  #src/viewer/ViewerModule.cpp
-  src/QGearsGameState.cpp
-  src/data/QGearsXMLSerializer.cpp
-)
-if(QGears_SOUND)
-    set(HEADER_FILES
-        ${HEADER_FILES}
-        include/core/AudioManager.h
-        include/core/XmlMusicsFile.h
-    )
-    set(SOURCE_FILES
-        ${SOURCE_FILES}
-        src/core/AudioManager.cpp
-        src/core/XmlMusicsFile.cpp
-    )
-endif()
-
-include_directories(
-    ${QGears_INCLUDE_DIRS}
-    ${CMAKE_CURRENT_SOURCE_DIR}/include
-
-    # TODO: remove dependency on ff7 related code
-    ${QGears_SOURCE_DIR}/SupportedGames/FinalFantasy7/include
-    ${CMAKE_CURRENT_SOURCE_DIR}/SupportedGames/FinalFantasy7/include
-
-)
-
-#compiler options
-if (MSVC)
-else()
-if(WIN32)
-    add_definitions(
-      -W
-      -mthreads
-      -fmessage-length=0
-      -fexceptions
-      -fident
-    )
-
-    #linker options
-    add_definitions(
-      -Wl,--enable-runtime-pseudo-reloc
-      -Wl,--enable-auto-image-base
-      -Wl,--add-stdcall-alias
-    )
-endif()
-endif()
-
-#defines
-if(WIN32)
-  #check usage and remove if uneccessary
-  add_definitions(-DWIN32 -D__WIN32__ -D_WINDOWS)
-endif()
-
-add_library(QGearsMain STATIC
-  ${HEADER_FILES}
-  ${SOURCE_FILES}
-)
-
-# Coverage uses more memory, combined with PCH can cause OOM/ICE
-#if ($ENV{COVERAGE}!=1)
-cotire(QGearsMain)
-#endif()
-SET_PROPERTY(TARGET QGearsMain PROPERTY FOLDER "q-gears")
-
-add_library(q-gears-data STATIC
- ${HEADER_FILES_DATA}
- ${SOURCE_FILES_DATA}
- )
-add_dependencies(q-gears-data configure_qgears_version)
-# Coverage uses more memory, combined with PCH can cause OOM/ICE
-if ($ENV{COVERAGE}!=1)
-cotire(q-gears-data)
-endif()
-SET_PROPERTY(TARGET q-gears-data PROPERTY FOLDER "q-gears")
-
-
-add_executable(q-gears
-  src/Main.cpp
-)
-SET_PROPERTY(TARGET q-gears PROPERTY FOLDER "q-gears")
-set(CPACK_PACKAGE_EXECUTABLES q-gears "q-gears")
-set(CPACK_WIX_PROGRAM_MENU_FOLDER "QGears")
-
-if (APPLE)
-target_link_libraries(q-gears "-framework CoreFoundation -framework Cocoa -framework IOKit")
-endif()
-
-if( WIN32 AND NOT (CMAKE_BUILD_TYPE MATCHES "Debug") )
-    set_target_properties( q-gears PROPERTIES WIN32_EXECUTABLE ON )
-	if (MSVC)
-        set_target_properties(q-gears PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
-    endif()
-endif()
-
-target_link_libraries(QGearsMain 
-    ${QGears_LIBRARIES}
-    LuaBind
-	liblua
-    TinyXml
-    FinalFantasy7
-)
-
-target_link_libraries(q-gears 
-	QGearsMain
-	${Boost_LIBRARIES}
-    q-gears-data
-)
-
-target_link_libraries(q-gears-data
-    QGearsMain
-)
-
-if(WIN32 OR APPLE)
-  install(TARGETS q-gears DESTINATION .)
-else()
-  install(TARGETS q-gears RUNTIME DESTINATION ./games)
-endif()

+ 0 - 25
QGearsMain/include/LuaIncludes.h

@@ -1,25 +0,0 @@
-#pragma once
-
-// Wraps the LUA includes for platform specific build workarounds
-#ifdef __APPLE__
-// Something in the Apple headers seems to #define nil as __NULL 
-// this then causes a build error in luabind:
-// luabind/nil.hpp:36:40: error: expected unqualified-id
-// extern LUABIND_API detail::nil_type nil;
-#undef nil
-
-// Causes a build error, usually an ICE on g++
-#undef check
-#endif
-
-#include <luabind/luabind.hpp>
-#include <luabind/yield_policy.hpp>
-
-
-extern "C"
-{
-    #include <lua.h>
-    #include <lualib.h>
-    #include <lauxlib.h>
-}
-

+ 0 - 15
QGearsMain/include/QGearsGameState.h

@@ -1,15 +0,0 @@
-#ifndef __QGearsGameState_H__
-#define __QGearsGameState_H__
-
-namespace QGears
-{
-    enum GAME_STATE
-    {
-        G_EXIT,
-        G_GAME
-    };
-
-    extern GAME_STATE g_ApplicationState;
-}
-
-#endif // __QGearsGameState_H__

+ 0 - 44
QGearsMain/include/QGearsPrerequisites.h

@@ -1,44 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-07-30 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsPrerequisites_H__
-#define __QGearsPrerequisites_H__
-
-#include <OgrePrerequisites.h>
-
-#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 ) && !defined(_MSC_VER) && !defined(QGEARS_STATIC_LIB)
-#   ifdef QGEARS_EXPORTS
-#       define _QGearsExport __declspec(dllexport)
-#   else
-#       define _QGearsExport __declspec(dllimport)
-#   endif
-#elif defined ( OGRE_GCC_VISIBILITY )
-#   define _QGearsExport  __attribute__ ((visibility("default")))
-#else
-#   define _QGearsExport
-#endif
-
-
-#endif // __QGearsPrerequisites_H__

+ 0 - 38
QGearsMain/include/common/File.h

@@ -1,38 +0,0 @@
-#ifndef FILE_H
-#define FILE_H
-
-#include <OgreString.h>
-
-#include "common/TypeDefine.h"
-
-
-class File
-{
-public:
-    File( const Ogre::String& file );
-    File( const File* pFile );
-    File( const File* pFile, u32 offset, u32 length );
-    File( const u8* pBuffer, u32 offset, u32 length );
-    virtual ~File();
-
-    void WriteFile( const Ogre::String& file ) const;
-    const Ogre::String& GetFileName() const;
-    u32 GetFileSize() const;
-    void GetFileBuffer( u8* pBuffer, const u32 &start, const u32 &length ) const;
-    u8 GetU8( u32 offset ) const;
-    u16 GetU16LE( u32 offset ) const;
-    u32 GetU32LE( u32 offset ) const;
-    u8 readU8();
-    u16 readU16LE();
-    u32 readU32LE();
-
-protected:
-    Ogre::String m_FileName;
-    u32 m_offset;
-    u8* m_Buffer;
-    u32 m_BufferSize;
-};
-
-
-
-#endif // FILE_H

+ 0 - 17
QGearsMain/include/common/FileSystem.h

@@ -1,17 +0,0 @@
-#ifndef FILESYSTEM_H
-#define FILESYSTEM_H
-
-#include <OgreString.h>
-
-class FileSystem
-{
-public:
-    FileSystem() = delete;
-    static unsigned int GetFileSize(const Ogre::String& path);
-    static bool         ReadFile(const Ogre::String &path, void* buffer, const unsigned int start, const unsigned int length);
-    static bool         WriteFile(const Ogre::String &path, const void* buffer, const unsigned int length);
-    static bool         WriteNewFile(const Ogre::String &path, const void* buffer, const unsigned int length);
-    static bool         RemoveFile(const Ogre::String &path);
-};
-
-#endif // FILESYSTEM_H

+ 0 - 30
QGearsMain/include/common/LzsFile.h

@@ -1,30 +0,0 @@
-#ifndef LZS_FILE_H
-#define LZS_FILE_H
-
-#include "common/File.h"
-#include "common/TypeDefine.h"
-#include <vector>
-
-class LzsFile : public File
-{
-public:
-    LzsFile(const Ogre::String& file);
-    LzsFile(File* pFile);
-    LzsFile(File* pFile, u32 offset, u32 length);
-    LzsFile(const u8* pBuffer, u32 offset, u32 length);
-    virtual ~LzsFile();
-
-private:
-    void ExtractLzs();
-    friend class LzsBuffer;
-};
-
-class LzsBuffer
-{
-public:
-    LzsBuffer() = delete;
-    static std::vector<QGears::uint8> Decompress(const std::vector<QGears::uint8>& buffer);
-};
-
-
-#endif // LZS_FILE_H

+ 0 - 84
QGearsMain/include/common/QGearsApplication.h

@@ -1,84 +0,0 @@
-/*
------------------------------------------------------------------------------
-Copyright (c) 19.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-This file is part of Q-Gears
-
-Q-Gears is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 2.0 (GPLv2) of the License.
-
-Q-Gears is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsApplication_H__
-#define __QGearsApplication_H__
-
-#include <OgreRoot.h>
-#include <OgreOverlaySystem.h>
-#include <memory>
-#include "TypeDefine.h"
-
-namespace QGears
-{
-    class Application : public Ogre::Singleton<Application>
-    {
-    public:
-        Application(Ogre::String pluginsFileName, Ogre::String resourcesFile, Ogre::String logFileName)
-            : m_plugins_filename(pluginsFileName), m_resources_filename(resourcesFile), m_log_filename(logFileName)
-        {
-
-        }
-        Application( int argc, char *argv[] );
-        virtual ~Application();
-        bool                initOgre( bool hideWindow = false );
-        Ogre::Root*         getRoot( void );
-        Ogre::RenderWindow* getRenderWindow( void );
-        const String&       getResourcesFilename( void );
-        Ogre::ResourceGroupManager* ResMgr() { return mResMgr; }
-    protected:
-        String  getWindowTitle( void ) const;
-        bool    processCommandLine( int argc, char *argv[] );
-        void    registerArchiveFactories( void );
-        void    loadResourcesConfig( void );
-        void    initComponents( void );
-        void    destroyComponents( void );
-        void    createResourceManagers( void );
-        void    destroyResourceManagers( void );
-
-    private:
-        typedef std::vector<std::shared_ptr<Ogre::ResourceManager>> ResourceManagerVector;
-
-
-        static const char*      CLI_SECTION_GENERIC;
-        static const char*      CLI_HELP;
-        static const char*      CLI_HELP_DESCRIPTION;
-        static const char*      CLI_CONFIG_FILE;
-        static const char*      CLI_CONFIG_FILE_DESCRIPTION;
-        static const char*      CLI_LOG_FILE;
-        static const char*      CLI_LOG_FILE_DESCRIPTION;
-        static const char*      CLI_PLUGINS_FILE;
-        static const char*      CLI_PLUGINS_FILE_DESCRIPTION;
-        static const char*      CLI_RESOURCES_FILE;
-        static const char*      CLI_RESOURCES_FILE_DESCRIPTION;
-
-        int     m_argc = 0;
-        char  **m_argv = nullptr;
-        String  m_config_filename;
-        String  m_log_filename;
-        String  m_plugins_filename;
-        String  m_resources_filename;
-
-        bool m_initialized = false;
-        std::unique_ptr<Ogre::Root> m_root;
-        std::unique_ptr<Ogre::OverlaySystem> m_overlay_system;
-        Ogre::RenderWindow* m_render_window = nullptr; // Not owned
-        ResourceManagerVector m_resource_managers;
-        Ogre::ResourceGroupManager* mResMgr = nullptr; // Not owned
-    };
-}
-
-#endif // __QGearsApplication_H__

+ 0 - 105
QGearsMain/include/common/QGearsManualObject.h

@@ -1,105 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-08-14 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsManualObject_H__
-#define __QGearsManualObject_H__
-
-#include <OgreColourValue.h>
-#include <OgreMesh.h>
-#include <OgreSubMesh.h>
-#include <OgreVector2.h>
-#include <OgreVector3.h>
-
-#include "common/TypeDefine.h"
-
-namespace QGears
-{
-    /*
-     * When parsing files this is used to create the rendering engine object, e.g when we see a bone
-     * in the file we are parsing then call bone() to add one.
-     */
-    class ManualObject
-    {
-        public:
-            explicit ManualObject( Ogre::Mesh *mesh );
-            virtual ~ManualObject();
-
-            enum BufferBinding
-            {
-                BB_POSITION
-              , BB_NORMAL
-              , BB_COLOUR
-              , BB_TEXTURE
-              , BINDING_COUNT
-            };
-
-            virtual void begin( const String &name, const String &material_name
-                               ,size_t vertex_count, size_t index_count );
-
-            virtual void position( const Ogre::Vector3 &position );
-            virtual void normal( const Ogre::Vector3 &normal );
-            virtual void colour( const Ogre::ColourValue &colour );
-            virtual void textureCoord( const Ogre::Vector2 &texture_coordinate );
-            virtual void index( const uint32 idx );
-            virtual void bone( const uint32 idx, const uint16 bone_handle
-                              ,const Ogre::Real weight = 1 );
-
-            virtual void end();
-
-        protected:
-            template<typename BufferType>
-            BufferType*     createBuffer( const BufferBinding binding, Ogre::VertexElementType type, Ogre::VertexElementSemantic semantic);
-            virtual void    createPositionBuffer();
-            virtual void    createNormalBuffer();
-            virtual void    createColourBuffer();
-            virtual void    createTextureCoordinateBuffer();
-            virtual void    createIndexBuffer();
-            virtual void    resetBuffers();
-
-            template<typename BufferSharedPtr>
-                    void    resetBuffer( BufferSharedPtr &buffer ) const;
-
-        private:
-            Ogre::Mesh     *m_mesh;
-            Ogre::SubMesh  *m_section;
-
-            Ogre::AxisAlignedBox    m_bbox;
-            Ogre::Real              m_radius;
-
-            typedef Ogre::HardwareVertexBufferSharedPtr VertexBuffer;
-            typedef Ogre::HardwareIndexBufferSharedPtr  IndexBuffer;
-            VertexBuffer    m_vertex_buffers[BINDING_COUNT];
-            IndexBuffer     m_index_buffer;
-            Ogre::Vector3  *m_position;
-            Ogre::Vector3  *m_normal;
-            uint32         *m_colour;
-            Ogre::Vector2  *m_texture_coordinate;
-            uint16         *m_index;
-
-            const Ogre::VertexElementType colour_type;
-    };
-}
-
-#endif // __QGearsManualObject_H__

+ 0 - 61
QGearsMain/include/common/QGearsResource.h

@@ -1,61 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-08-26 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsResource_H__
-#define __QGearsResource_H__
-
-#include <OgreDataStream.h>
-#include <OgreResource.h>
-#include <OgreResourceGroupManager.h>
-
-#include "common/TypeDefine.h"
-#include "QGearsPrerequisites.h"
-
-namespace QGears
-{
-    class _QGearsExport Resource : public Ogre::Resource
-    {
-    public:
-        Resource(Ogre::ResourceManager *creator
-            , const String &name, Ogre::ResourceHandle handle
-            , const String &group, bool isManual
-            , Ogre::ManualResourceLoader *loader) :
-            Ogre::Resource(creator, name, handle, group, isManual, loader)
-        {
-        }
-
-        virtual ~Resource() = default;
-
-    protected:
-        virtual Ogre::DataStreamPtr openResource()
-        {
-            return Ogre::ResourceGroupManager::getSingleton().openResource(mName, mGroup, true, this);
-        }
-
-    private:
-    };
-}
-
-#endif // __QGearsResource_H__

+ 0 - 42
QGearsMain/include/common/QGearsStringUtil.h

@@ -1,42 +0,0 @@
-/*
------------------------------------------------------------------------------
-The MIT License (MIT)
-
-Copyright (c) 2013-08-17 Tobias Peters <tobias.peters@kreativeffekt.at>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
------------------------------------------------------------------------------
-*/
-#ifndef __QGearsStringUtil_H__
-#define __QGearsStringUtil_H__
-
-#include "common/TypeDefine.h"
-
-namespace QGears
-{
-    class StringUtil : public Ogre::StringUtil
-    {
-    public:
-        static void splitPath( const String &qualifiedName, String &outPath );
-        static void splitBase( const String &qualifiedName, String &outBasename );
-        static void splitFull( const String &qualifiedName, String &outBasename );
-    };
-}
-
-#endif // __QGearsStringUtil_H__

+ 0 - 71
QGearsMain/include/common/TypeDefine.h

@@ -1,71 +0,0 @@
-#ifndef TYPE_DEFINE_H
-#define TYPE_DEFINE_H
-
-#include <OgrePlatform.h>
-#include <OgreString.h>
-
-typedef Ogre::uint8  u8;
-typedef Ogre::uint16 u16;
-typedef Ogre::uint32 u32;
-
-typedef Ogre::int8  s8;
-typedef Ogre::int16 s16;
-typedef Ogre::int32 s32;
-
-#define BEGIN_QGEARS namespace QGears {
-#define END_QGEARS }
-
-namespace QGears
-{
-    typedef Ogre::uchar  uchar;
-    typedef Ogre::uint8  uint8;
-    typedef Ogre::uint16 uint16;
-    typedef Ogre::uint32 uint32;
-
-    typedef Ogre::int8  sint8;
-    typedef Ogre::int16 sint16;
-    typedef Ogre::int32 sint32;
-
-    typedef Ogre::String String;
-
-    struct ColorComponents
-    {
-        uint8 blue;
-        uint8 green;
-        uint8 red;
-        uint8 alpha;
-    };
-
-    union ColorA8R8G8B8
-    {
-        ColorComponents comp;
-        uint32 all;
-    };
-
-    struct Pixel
-    {
-        sint16 x;
-        sint16 y;
-    };
-
-    extern const String    EXT_MATERIAL;
-    extern const String    EXT_MESH;
-    extern const String    EXT_SKELETON;
-    extern const String    EXT_CONFIG;
-    extern const String    EXT_LOG;
-
-    extern const String    EXT_P;
-    extern const String    EXT_PLY;
-    extern const String    EXT_RSD;
-    extern const String    EXT_TIM;
-    extern const String    EXT_TEX;
-
-    extern const String    EXT_TRIGGERS;
-    extern const String    EXT_BACKGROUND;
-    extern const String    EXT_CAMERA_MATRIX;
-    extern const String    EXT_MODEL_LIST;
-    extern const String    EXT_PALETTE;
-    extern const String    EXT_WALKMESH;
-}
-
-#endif // TYPE_DEFINE_H

+ 0 - 17
QGearsMain/include/common/make_unique.h

@@ -1,17 +0,0 @@
-#ifndef _MAKE_UNIQUE_
-#define _MAKE_UNIQUE_
-
-#include <memory>
-
-#ifndef _MSC_VER
-namespace std
-{
-    template<typename T, typename ...Args>
-    std::unique_ptr<T> make_unique( Args&& ...args )
-    {
-        return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );
-    }
-}
-#endif
-
-#endif // _MAKE_UNIQUE_

+ 0 - 12
QGearsMain/include/core/Assert.h

@@ -1,12 +0,0 @@
-#ifndef ASSERT_H
-#define ASSERT_H
-
-#include <cassert>
-
-
-
-#define QGEARS_ASSERT( exp, text ) assert( exp && text )
-
-
-
-#endif // ASSERT_H

+ 0 - 99
QGearsMain/include/core/AudioManager.h

@@ -1,99 +0,0 @@
-#ifndef AUDIO_MANAGER_H
-#define AUDIO_MANAGER_H
-
-#include <OgreSingleton.h>
-#include <boost/thread.hpp>
-#include <vorbis/vorbisfile.h>
-
-// Include OpenAL
-#if defined(__WIN32__) || defined(_WIN32)
-    #include <al.h>
-    #include <alc.h>
-#else
-    #include <AL/al.h>
-    #include <AL/alc.h>
-#endif
-
-
-
-class AudioManager : public Ogre::Singleton< AudioManager >
-{
-public:
-    AudioManager();
-    virtual ~AudioManager();
-
-    // boost uses this
-    void operator()();
-
-    void Update();
-    void MusicPause();
-    void MusicPlay( const Ogre::String& name );
-    void MusicStop();
-
-    struct Music
-    {
-        Ogre::String name;
-        Ogre::String file;
-        float        loop;
-    };
-    void AddMusic( const AudioManager::Music& music );
-    AudioManager::Music* GetMusic( const Ogre::String& name );
-
-private:
-    const bool Init();
-    const char* ALError();
-    const char* ALCError( const ALCdevice* device );
-
-    class Player
-    {
-    public:
-        Player( boost::recursive_mutex* mutex );
-        ~Player();
-
-        void Pause();
-        void Play( const Ogre::String& file );
-        void Stop();
-
-        void SetLoop( const float loop );
-
-        void Update();
-        float GetPosition();
-
-    private:
-        boost::recursive_mutex* m_UpdateMutex;
-        float                   m_Loop;
-        OggVorbis_File          m_VorbisFile;
-        vorbis_info*            m_VorbisInfo;
-        int                     m_VorbisSection;
-        bool                    m_StreamFinished;
-        ALuint                  m_Source;
-
-        ALsizei FillBuffer();
-    };
-
-
-
-private:
-    bool                   m_Initialized;
-
-    ALCdevice*             m_ALDevice;
-    ALCcontext*            m_ALContext;
-    char*                  m_Buffer;
-
-    boost::recursive_mutex m_UpdateMutex;
-    boost::thread*         m_UpdateThread;
-    bool                   m_ThreadContinue;
-
-    AudioManager::Player             m_Music;
-    std::list< AudioManager::Music > m_MusicList;
-
-    // allocate for every new player two 96Kb buffer chunks
-    // every chunk would buffer ~0.5 seconds of 44100Hz stereo 16-bit data
-    // in that case we can sleep updating buffers for 250ms
-    static ALsizei m_ChannelBufferSize;
-    static int m_ChannelBufferNumber;
-};
-
-
-
-#endif // AUDIO_MANAGER_H

+ 0 - 158
QGearsMain/include/core/Background2D.h

@@ -1,158 +0,0 @@
-#ifndef BACKGROUND_2D_H
-#define BACKGROUND_2D_H
-
-#include <OgreHardwareVertexBuffer.h>
-#include <OgreRenderQueueListener.h>
-#include <OgreRoot.h>
-
-#include "map/QGearsBackground2DFile.h"
-
-#include "Background2DAnimation.h"
-#include "Entity.h"
-#include "ScriptManager.h"
-
-
-class Background2D : public Ogre::RenderQueueListener
-{
-public:
-
-    typedef QGears::Blending  Blending;
-
-    enum ScrollType
-    {
-        NONE,
-        LINEAR,
-        SMOOTH
-    };
-
-    Background2D();
-    virtual ~Background2D();
-
-    void InputDebug(const QGears::Event& event);
-    void Update();
-    void UpdateDebug();
-    void OnResize();
-
-    void Clear();
-
-    void ScriptAutoScrollToEntity( Entity* entity );
-    Entity* GetAutoScrollEntity() const;
-    void ScriptScrollToPosition( const float x, const float y, const ScrollType type, const float seconds );
-    int ScriptScrollSync();
-    void UnsetScroll();
-    const Ogre::Vector2& GetScrollPositionStart() const;
-    const Ogre::Vector2& GetScrollPositionEnd() const;
-    ScrollType GetScrollType() const;
-    float GetScrollSeconds() const;
-    void SetScrollCurrentSeconds( const float seconds );
-    float GetScrollCurrentSeconds() const;
-
-    // Scroll position in screen coordinates
-    void SetScreenScroll( const Ogre::Vector2& position );
-    const Ogre::Vector2 GetScreenScroll() const;
-    // scroll in game internal screen coordinates
-    void SetScroll( const Ogre::Vector2& position );
-    const Ogre::Vector2& GetScroll() const;
-
-
-    void SetImage( const Ogre::String& image );
-
-    void SetRange( const int min_x, const int min_y, const int max_x, const int max_y );
-    void SetRange( const Ogre::Vector4& range );
-
-    void AddTile( const int x, const int y, const int width, const int height, const float depth, const float u1, const float v1, const float u2, const float v2, const Blending blending );
-    void AddTile( const Ogre::Vector2& destination, const int width, const int height, const float depth, const Ogre::Vector4& uv, const Blending blending );
-    void AddTile( const QGears::Tile& tile );
-
-    void UpdateTileUV( const unsigned int tile_id, const float u1, const float v1, const float u2, const float v2 );
-
-    void AddAnimation( Background2DAnimation* animation );
-    void PlayAnimation( const Ogre::String& animation, const Background2DAnimation::State state );
-    void ScriptPlayAnimationLooped( const char* name );
-    void ScriptPlayAnimationOnce( const char* name );
-    int ScriptAnimationSync( const char* name );
-
-    void renderQueueEnded( Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& repeatThisInvocation );
-
-    struct Tile
-    {
-        int x;
-        int y;
-        int width;
-        int height;
-        size_t start_vertex_index;
-        Blending blending;
-    };
-    typedef std::vector< Tile > TileList;
-
-    virtual void load( const QGears::Background2DFilePtr &background );
-
-protected:
-    virtual void load( const QGears::Background2DFile::TileList &tiles );
-    virtual void load( const size_t tile_index, const QGears::AnimationMap &animations );
-    virtual void applyScroll( void );
-    virtual void calculateScreenScale( void );
-    virtual void virtualScreenToWorldSpace( Ogre::Vector2 &pos ) const;
-
-    enum
-    {
-        TILE_VERTEX_COUNT = 6
-       ,TILE_VERTEX_INDEX_SIZE = TILE_VERTEX_COUNT + 3
-    };
-
-private:
-    void CreateVertexBuffers();
-    void DestroyVertexBuffers();
-
-private:
-    Ogre::SceneManager*                   m_SceneManager;
-    Ogre::RenderSystem*                   m_RenderSystem;
-
-    TileList                              m_Tiles;
-
-    // alpha blended
-    Ogre::RenderOperation                 m_AlphaRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr   m_AlphaVertexBuffer;
-    unsigned int                          m_AlphaMaxVertexCount;
-    Ogre::MaterialPtr                     m_AlphaMaterial;
-
-    // add blended
-    Ogre::RenderOperation                 m_AddRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr   m_AddVertexBuffer;
-    unsigned int                          m_AddMaxVertexCount;
-    Ogre::MaterialPtr                     m_AddMaterial;
-
-    // subtract blended
-    Ogre::RenderOperation                 m_SubtractRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr   m_SubtractVertexBuffer;
-    unsigned int                          m_SubtractMaxVertexCount;
-    Ogre::MaterialPtr                     m_SubtractMaterial;
-
-    Entity*                               m_ScrollEntity;
-    Ogre::Vector2                         m_ScrollPositionStart;
-    Ogre::Vector2                         m_ScrollPositionEnd;
-    ScrollType                            m_ScrollType;
-    float                                 m_ScrollSeconds;
-    float                                 m_ScrollCurrentSeconds;
-    std::vector< ScriptId >               m_ScrollSync;
-    Ogre::Vector2                         m_Position;
-    Ogre::Vector2                         m_PositionReal;
-
-    Ogre::Real                            m_screen_scale;
-    Ogre::Vector2                         m_screen_proportion;
-    Ogre::Vector2                         m_virtual_screen_size;
-    Ogre::AxisAlignedBox                  m_range;
-
-    struct AnimationPlayed
-    {
-        Ogre::String                 name;
-        std::vector< ScriptId >      sync;
-        Background2DAnimation::State state;
-    };
-    std::vector< AnimationPlayed >        m_AnimationPlayed;
-    std::vector< Background2DAnimation* > m_Animations;
-};
-
-
-
-#endif // BACKGROUND_2D_H

+ 0 - 62
QGearsMain/include/core/Background2DAnimation.h

@@ -1,62 +0,0 @@
-#ifndef BACKGROUND_2D_ANIMATION_H
-#define BACKGROUND_2D_ANIMATION_H
-
-#include <OgreString.h>
-#include <OgreVector2.h>
-#include <vector>
-
-#include "map/QGearsTile.h"
-
-class Background2D;
-
-
-
-class Background2DAnimation
-{
-public:
-    Background2DAnimation( const Ogre::String& name, Background2D* background, const int tile_index );
-    virtual ~Background2DAnimation();
-
-    enum State
-    {
-        ONCE,
-        LOOPED
-    };
-
-    void  AddTime( const float time );
-
-    const Ogre::String& GetName() const;
-
-    void  SetTime( const float time );
-    float GetTime() const;
-    void  SetLength( const float time );
-    float GetLength() const;
-
-    virtual void AddUVKeyFrame( const QGears::KeyFrame key_frame );
-    virtual void AddUVKeyFrame( const float time, const Ogre::Vector4& uv );
-    virtual void AddUVKeyFrame( const float time, const float u1, const float v1, const float u2, const float v2 );
-
-private:
-    Background2DAnimation();
-
-    Ogre::String  m_Name;
-    Background2D* m_Background;
-    int           m_TileIndex;
-
-    float         m_Time;
-    float         m_Length;
-
-    struct Background2DKeyFrameUV
-    {
-        float time;
-        float u1;
-        float v1;
-        float u2;
-        float v2;
-    };
-    std::vector< Background2DKeyFrameUV > m_UV;
-};
-
-
-
-#endif // BACKGROUND_2D_ANIMATION_H

+ 0 - 56
QGearsMain/include/core/CameraManager.h

@@ -1,56 +0,0 @@
-#ifndef CAMERA_MANAGER_H
-#define CAMERA_MANAGER_H
-
-#include <OgreCamera.h>
-#include <OgreSingleton.h>
-
-#include "Event.h"
-
-
-
-class CameraManager : public Ogre::Singleton< CameraManager >
-{
-public:
-    CameraManager();
-    virtual ~CameraManager();
-
-    void Input(const QGears::Event& event , Ogre::Real timeSinceLastFrame);
-    void Update();
-    void OnResize();
-
-    // camera free related
-    void SetCameraFree( const bool enable );
-
-    // camera 2D related
-    void Set2DCamera( const Ogre::Vector3 position, const Ogre::Quaternion orientation, const Ogre::Radian fov );
-    void Set2DScroll( const Ogre::Vector2& position );
-    const Ogre::Vector2& Get2DScroll() const;
-
-    const Ogre::Vector3 ProjectPointToScreen( const Ogre::Vector3& point );
-
-    Ogre::Camera*   GetCurrentCamera();
-    Ogre::Viewport* getViewport();
-
-    void EnableWireFrame(bool);
-private:
-
-    void InitCommands();
-
-private:
-    Ogre::Camera   *m_Camera;
-    Ogre::Viewport *m_Viewport;
-
-    // camera free related
-    bool m_CameraFree;
-    bool m_CameraFreeRotate;
-
-    // camera 2D related
-    Ogre::Vector3 m_2DPosition;
-    Ogre::Quaternion m_2DOrientation;
-    Ogre::Radian m_2DFOV;
-    Ogre::Vector2 m_2DScroll;
-};
-
-
-
-#endif // CAMERA_MANAGER_H

+ 0 - 36
QGearsMain/include/core/CameraManagerCommands.h

@@ -1,36 +0,0 @@
-#include <OgreStringConverter.h>
-
-#include "CameraManager.h"
-#include "ConfigCmdManager.h"
-#include "Console.h"
-
-
-
-void
-CommandCameraFree( const Ogre::StringVector& params )
-{
-    if( params.size() < 1 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /camera_free <enable>" );
-        return;
-    }
-
-    CameraManager::getSingleton().SetCameraFree( Ogre::StringConverter::parseBool( params[ 1 ] ) );
-}
-
-
-
-void
-CommandCameraFreeCompletition( Ogre::StringVector& complete_params )
-{
-    complete_params.push_back( "true" );
-    complete_params.push_back( "false" );
-}
-
-
-
-void
-CameraManager::InitCommands()
-{
-    ConfigCmdManager::getSingleton().AddCommand( "camera_free", "Enable or disable free camera", "", CommandCameraFree, CommandCameraFreeCompletition );
-}

+ 0 - 45
QGearsMain/include/core/ConfigCmd.h

@@ -1,45 +0,0 @@
-#ifndef CONFIG_CMD_H
-#define CONFIG_CMD_H
-
-#include <OgreString.h>
-#include <OgreStringVector.h>
-
-
-
-class ConfigCmdManager;
-
-typedef void ( *ConfigCmdHandler )( const Ogre::StringVector& params );
-typedef void ( *ConfigCmdCompletion )( Ogre::StringVector& complete_params );
-
-
-
-class ConfigCmd
-{
-    friend class ConfigCmdManager;
-
-public:
-    const Ogre::String&     GetName() const;
-    const Ogre::String&     GetDescription() const;
-    const Ogre::String&     GetParamsDescription() const;
-
-    ConfigCmdHandler        GetHandler() const;
-    ConfigCmdCompletion     GetCompletion() const;
-
-
-    // ConfigCmd could be created only by ConfigCmdManager
-    ConfigCmd(const Ogre::String& name, const Ogre::String& description, const Ogre::String& params_description, ConfigCmdHandler handler, ConfigCmdCompletion completion);
-private:
-    // forbid copy
-    ConfigCmd(const ConfigCmd& rhs) = delete;
-    ConfigCmd& operator =(const ConfigCmd& rhs) = delete;
-
-    Ogre::String            m_Name;
-    Ogre::String            m_Description;
-    Ogre::String            m_ParamsDescription;
-    ConfigCmdHandler        m_Handler;
-    ConfigCmdCompletion     m_Completion;
-};
-
-
-
-#endif // CONFIG_CMD_H

+ 0 - 38
QGearsMain/include/core/ConfigCmdManager.h

@@ -1,38 +0,0 @@
-#ifndef CONFIG_CMD_MANAGER_H
-#define CONFIG_CMD_MANAGER_H
-
-#include <OgreSingleton.h>
-#include <vector>
-#include <memory>
-#include "ConfigCmd.h"
-
-
-
-class ConfigCmdManager : public Ogre::Singleton< ConfigCmdManager >
-{
-public:
-    ConfigCmdManager();
-    ~ConfigCmdManager();
-
-    void AddCommand( const Ogre::String& name, const Ogre::String& description, const Ogre::String& params_description, ConfigCmdHandler handler, ConfigCmdCompletion completion );
-
-    void ExecuteString( const Ogre::String& cmd_string );
-
-    // return command with specified name
-    ConfigCmd* Find( const Ogre::String& name ) const;
-    int GetConfigCmdNumber();
-    ConfigCmd* GetConfigCmd( unsigned int i ) const;
-
-private:
-    // forbid copy
-    ConfigCmdManager( const ConfigCmdManager& rhs ) = delete;
-    ConfigCmdManager operator =( const ConfigCmdManager& rhs ) = delete;
-
-    void InitCmd();
-
-    std::vector< std::unique_ptr<ConfigCmd> > m_Commands;
-};
-
-
-
-#endif // CONFIG_CMD_MANAGER_H

+ 0 - 439
QGearsMain/include/core/ConfigCmdManagerCommands.h

@@ -1,439 +0,0 @@
-#include <OgreRenderWindow.h>
-#include <OgreRoot.h>
-#include <OgreStringConverter.h>
-
-#include "Console.h"
-#include "ConfigCmdManager.h"
-#include "ConfigVarManager.h"
-#include "EntityManager.h"
-#include "Logger.h"
-#include "XmlMapFile.h"
-#include "XmlMapsFile.h"
-
-#include "QGearsGameState.h"
-#include "common/QGearsApplication.h"
-
-
-void
-CmdQuit( const Ogre::StringVector& params )
-{
-    QGears::g_ApplicationState = QGears::G_EXIT;
-}
-
-
-
-void
-CmdEcho( const Ogre::StringVector& params )
-{
-    if( params.size() < 1 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /echo <string to output>" );
-        return;
-    }
-
-    Ogre::String text = "";
-
-    for( size_t i = 1; i < params.size(); ++i )
-    {
-        if( i != 1 )
-        {
-            text += " ";
-        }
-        text += params[ i ];
-    }
-
-    Console::getSingleton().AddTextToOutput( text + "\n" );
-}
-
-
-
-void
-CmdConfigVarList( const Ogre::StringVector& params )
-{
-    if( params.size() > 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /config_var_list [search string]" );
-        return;
-    }
-
-    int number = 0;
-    int num_vars = ConfigVarManager::getSingleton().GetConfigVarNumber();
-    for( int i = 0; i < num_vars; ++i )
-    {
-        ConfigVar* var = ConfigVarManager::getSingleton().GetConfigVar( i );
-        Ogre::String name = var->GetName();
-
-        if( params.size() > 1 )
-        {
-            int found = name.find( params[ 1 ] );
-            if( found == 0 )
-            {
-                Console::getSingleton().AddTextToOutput( var->GetName() + " = \"" + var->GetS() + "\"" );
-                ++number;
-            }
-        }
-        else
-        {
-            Console::getSingleton().AddTextToOutput( var->GetName() + " = \"" + var->GetS() + "\"" );
-            ++number;
-        }
-    }
-
-    Console::getSingleton().AddTextToOutput( Ogre::StringConverter::toString(number) + " config variables.\n" );
-}
-
-
-
-void
-CmdConfigCmdList( const Ogre::StringVector& params )
-{
-    if( params.size() > 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /config_cmd_list [search string]" );
-        return;
-    }
-
-    int number = 0;
-    int num_cmds = ConfigCmdManager::getSingleton().GetConfigCmdNumber();
-    for( int i = 0; i < num_cmds; ++i )
-    {
-        ConfigCmd* cmd = ConfigCmdManager::getSingleton().GetConfigCmd( i );
-        Ogre::String name = cmd->GetName();
-
-        if( params.size() > 1 )
-        {
-            int found = name.find( params[ 1 ] );
-
-            if( found == 0 )
-            {
-                Console::getSingleton().AddTextToOutput( cmd->GetName() );
-                ++number;
-            }
-        }
-        else
-        {
-            Console::getSingleton().AddTextToOutput( cmd->GetName() );
-            ++number;
-        }
-    }
-
-    Console::getSingleton().AddTextToOutput( Ogre::StringConverter::toString( number ) + " config commands.\n" );
-}
-
-
-
-// set cvar value
-void
-CmdSetConfigVar( const Ogre::StringVector& params )
-{
-    if( params.size() < 2 || params.size() > 3 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /set <config variable> [value]" );
-        return;
-    }
-
-    Ogre::String name = params[ 1 ];
-
-    ConfigVar* cvar = ConfigVarManager::getSingleton().Find( name );
-    if( cvar == NULL )
-    {
-        LOG_ERROR( "Config variable \"" + name + "\" not found." );
-        return;
-    }
-
-    if( params.size() == 3 )
-    {
-        cvar->SetS( params[ 2 ] );
-
-        Console* console = Console::getSingletonPtr();
-        if( console != NULL )
-        {
-            LOG_TRIVIAL( params[ 1 ] + " changed to \"" + params[ 2 ] + "\"." );
-        }
-    }
-    else
-    {
-        // reset to default
-        cvar->SetS( cvar->GetDefaultValue() );
-        LOG_TRIVIAL( params[ 1 ] + " changed to default \"" + cvar->GetDefaultValue() + "\"." );
-    }
-}
-
-
-
-// toggle cvar value
-void
-CmdToggleConfigVar( const Ogre::StringVector& params )
-{
-    if( params.size() < 4 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /toggle <config variable> [value1] [value2] ..." );
-        return;
-    }
-
-    Ogre::String name = params[ 1 ];
-
-    ConfigVar* cvar = ConfigVarManager::getSingleton().Find( name );
-    if( cvar == NULL )
-    {
-        LOG_ERROR( "Config variable \"" + name + "\" not found." );
-        return;
-    }
-
-    // sequentially trigger values
-    int number_of_values = params.size() - 2;
-    Ogre::String value = cvar->GetS();
-    int i = 0;
-
-    for( ; i < number_of_values; ++i )
-    {
-        if( value == params[ i + 2 ] )
-        {
-            ++i;
-            break;
-        }
-    }
-
-    if( i == number_of_values )
-    {
-        i = 0;
-    }
-
-    cvar->SetS( params[ i + 2 ] );
-}
-
-
-
-// increment cvar value
-void
-CmdIncrementConfigVar( const Ogre::StringVector& params )
-{
-    if( params.size() != 5 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /increment <cvar name> [value min] [value max] [step]" );
-        return;
-    }
-
-    Ogre::String name = params[ 1 ];
-
-    ConfigVar* cvar = ConfigVarManager::getSingleton().Find( name );
-    if( cvar == NULL )
-    {
-        LOG_ERROR( "Config variable \"" + name + "\" not found." );
-        return;
-    }
-
-    float start_value = Ogre::StringConverter::parseReal( params[ 2 ] );
-    float end_value = Ogre::StringConverter::parseReal( params[ 3 ] );
-    float step = Ogre::StringConverter::parseReal( params[ 4 ] );
-
-    float new_value = cvar->GetF() + step;
-    if( new_value > end_value )
-    {
-        new_value = end_value;
-    }
-    else if( new_value < start_value )
-    {
-        new_value = start_value;
-    }
-
-    cvar->SetF( new_value );
-}
-
-
-
-void
-CmdSetLogLevel( const Ogre::StringVector& params )
-{
-    if( params.size() != 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /log_level <level: 1 - only errors, 2 - errors and warnings, 3 - all>" );
-        return;
-    }
-
-    int value = Ogre::StringConverter::parseInt( params[ 1 ] );
-    if( value > 0 && value < 4 )
-    {
-        Ogre::LogManager::getSingletonPtr()->getDefaultLog()->setLogDetail( ( Ogre::LoggingLevel )value );
-
-        switch( value )
-        {
-            case 1: Console::getSingleton().AddTextToOutput( "Logger level changed to \"only errors\".\n" ); break;
-            case 2: Console::getSingleton().AddTextToOutput( "Logger level changed to \"errors and warnings\".\n" ); break;
-            case 3: Console::getSingleton().AddTextToOutput( "Logger level changed to \"all\".\n" ); break;
-        }
-    }
-    else
-    {
-        Console::getSingleton().AddTextToOutput( "Logger level can't be changed. Value \"" + params[ 1 ] + "\" isn't supported.\n" );
-    }
-}
-
-
-
-void
-CmdMap( const Ogre::StringVector& params )
-{
-    if( params.size() != 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /map [map_id]" );
-        return;
-    }
-
-    EntityManager::getSingleton().Clear();
-
-    XmlMapsFile xml( "./data/maps.xml" );
-    Ogre::String file_name = xml.GetMapFileNameByName( params[ 1 ] );
-
-    XmlMapFile xml_map( "./data/" + file_name );
-    xml_map.LoadMap();
-}
-
-
-
-void
-CmdMapCompletion( Ogre::StringVector& complete_params )
-{
-    XmlMapsFile xml( "./data/maps.xml" );
-    xml.GetMapNames( complete_params );
-}
-
-
-
-void
-CmdResolution( const Ogre::StringVector& params )
-{
-    if( params.size() < 3 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /resolution <width> <height> [full screen]" );
-        return;
-    }
-
-    Ogre::RenderWindow* window = QGears::Application::getSingleton().getRenderWindow();
-
-    if( params.size() >= 4 )
-    {
-        window->setFullscreen( Ogre::StringConverter::parseBool( params[ 3 ] ), Ogre::StringConverter::parseInt( params[ 1 ] ), Ogre::StringConverter::parseInt( params[ 2 ] ) );
-    }
-    else
-    {
-        window->resize( Ogre::StringConverter::parseInt( params[ 1 ] ), Ogre::StringConverter::parseInt( params[ 2 ] ) );
-    }
-}
-
-
-
-void
-CmdResolutionCompletition( Ogre::StringVector& complete_params )
-{
-    complete_params.push_back( "640 480 0" );
-    complete_params.push_back( "640 480 1" );
-    complete_params.push_back( "800 600 0" );
-    complete_params.push_back( "800 600 1" );
-    complete_params.push_back( "1024 768 0" );
-    complete_params.push_back( "1024 768 1" );
-    complete_params.push_back( "1280 720 0" );
-    complete_params.push_back( "1280 720 1" );
-    complete_params.push_back( "1280 1024 0" );
-    complete_params.push_back( "1280 1024 1" );
-}
-
-
-
-void
-CmdScreenshot( const Ogre::StringVector& params )
-{
-    Ogre::RenderWindow* window = QGears::Application::getSingleton().getRenderWindow();
-    Ogre::String ret = window->writeContentsToTimestampedFile( "screenshot_", ".tga" );
-    Console::getSingleton().AddTextToOutput( "Screenshot " + ret + " saved." );
-}
-
-
-
-/*
-void
-CmdViewer( const Ogre::StringVector& params )
-{
-    if( params.size() == 2 || params.size() > 3 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /viewer [type_of_thing_to_view] [path_to_resource]" );
-        return;
-    }
-
-    ModuleManager::getSingleton().RunViewer();
-
-    if( params.size() == 3 )
-    {
-        ViewerModule* module = ( ViewerModule* )( ModuleManager::getSingleton().GetTopModule() );
-
-        if( params[ 1 ] == "walkmesh" )
-        {
-            module->SetWalkmeshToLoad( params[ 2 ] );
-        }
-        else if( params[ 1 ] == "model" )
-        {
-            module->SetModelToLoad( params[ 2 ] );
-        }
-        else
-        {
-            LOG_ERROR( "Unsupported type \"" + params[ 1 ] + "\" in viewer command." );
-        }
-    }
-}
-
-
-
-void
-CmdViewerCompletion( Ogre::StringVector& complete_params )
-{
-    // models
-    complete_params.push_back( "model" );
-
-    Ogre::FileInfoListPtr resources = Ogre::ResourceGroupManager::getSingleton().listResourceFileInfo( "Game" );
-    Ogre::FileInfoList resource_names = *resources;
-
-    Ogre::FileInfoList::iterator i = resource_names.begin();
-    for( ; i != resource_names.end(); ++i )
-    {
-        Ogre::String name;
-        Ogre::String ext;
-        Ogre::StringUtil::splitBaseFilename( i->filename, name, ext );
-        if( ext == "mesh" )
-        {
-            complete_params.push_back( "model " + i->filename );
-        }
-    }
-
-    // walkmeshes
-    complete_params.push_back( "walkmesh" );
-    XmlMapsFile xml( "./data/game_data/maps.xml" );
-    Ogre::StringVector tmp;
-    xml.GetMapNames( tmp );
-    for( int i = 0; i < tmp.size(); ++i )
-    {
-        complete_params.push_back( "walkmesh " + tmp[ i ] );
-    }
-}
-*/
-
-
-void
-ConfigCmdManager::InitCmd()
-{
-    AddCommand( "quit", "Stops application and quit", "", CmdQuit, NULL );
-    AddCommand( "echo", "Print command parameters", "", CmdEcho, NULL );
-    AddCommand( "config_var_list", "List of registered config variables", "[<filter substring>]", CmdConfigVarList, NULL );
-    AddCommand( "config_cmd_list", "List of registered config commands", "[<filter substring>]", CmdConfigCmdList, NULL );
-    AddCommand( "set", "Set cvar value", "<cvar name> [value]", CmdSetConfigVar, NULL );
-    AddCommand( "toggle", "Toggle cvar value", "<cvar name> [value1] [value2] ...", CmdToggleConfigVar, NULL );
-    AddCommand( "increment", "Increment cvar value", "<cvar name> [value min] [value max] [step]", CmdIncrementConfigVar, NULL );
-
-    AddCommand( "set_log_level", "Set log messages level", "", CmdSetLogLevel, NULL );
-
-    AddCommand( "map", "Run game module", "", CmdMap, CmdMapCompletion );
-
-    AddCommand( "resolution", "Change resolution", "", CmdResolution, CmdResolutionCompletition );
-    AddCommand( "screenshot", "Capture current screen content", "", CmdScreenshot, NULL );
-
-    //AddCommand( "viewer", "Run viewer module", "", CmdViewer, CmdViewerCompletion );
-}

+ 0 - 16
QGearsMain/include/core/ConfigFile.h

@@ -1,16 +0,0 @@
-#ifndef CONFIG_FILE_H
-#define CONFIG_FILE_H
-
-#include <OgreString.h>
-
-
-
-class ConfigFile
-{
-public:
-    void            Execute(const Ogre::String& name);
-};
-
-
-
-#endif // CONFIG_FILE_H

+ 0 - 54
QGearsMain/include/core/ConfigVar.h

@@ -1,54 +0,0 @@
-#ifndef CONFIG_VAR_H
-#define CONFIG_VAR_H
-
-#include <OgreString.h>
-
-
-
-class ConfigVarManager;
-
-
-
-class ConfigVar
-{
-    friend class ConfigVarManager;
-
-public:
-                        ConfigVar(const Ogre::String& name, const Ogre::String& description, const Ogre::String& default_value);
-
-    int                 GetI() const;
-    float               GetF() const;
-    bool                GetB() const;
-    Ogre::String        GetS() const;
-
-    void                SetI(int value);
-    void                SetF(float value);
-    void                SetB(bool value);
-    void                SetS(const Ogre::String& value);
-
-    const Ogre::String& GetName() const;
-    const Ogre::String& GetDescription() const;
-    const Ogre::String& GetDefaultValue() const;
-
-    void                UpdateVariables();
-
-private:
-    // forbid copy
-    ConfigVar(const ConfigVar&) = delete;
-    ConfigVar&operator=(const ConfigVar&) = delete;
-
-    Ogre::String    m_Name;
-    Ogre::String    m_Description;
-    Ogre::String    m_DefaultValue;
-    int             m_ValueI;
-    float           m_ValueF;
-    bool            m_ValueB;
-    Ogre::String    m_ValueS;
-
-    ConfigVar*          m_Previous;
-    static ConfigVar*   m_StaticConfigVarList;
-};
-
-
-
-#endif // CONFIG_VAR_H

+ 0 - 26
QGearsMain/include/core/ConfigVarManager.h

@@ -1,26 +0,0 @@
-#ifndef CONFIG_VAR_MANAGER_H
-#define CONFIG_VAR_MANAGER_H
-
-#include <OgreSingleton.h>
-#include <vector>
-
-#include "ConfigVar.h"
-
-
-
-class ConfigVarManager : public Ogre::Singleton< ConfigVarManager >
-{
-public:
-    ConfigVarManager();
-
-    ConfigVar*   Find( const Ogre::String& name ) const;
-    unsigned int GetConfigVarNumber() const;
-    ConfigVar*   GetConfigVar( const unsigned int i ) const;
-
-private:
-    std::vector< ConfigVar* > m_ConfigVars;
-};
-
-
-
-#endif // CONFIG_VAR_MANAGER_H

+ 0 - 80
QGearsMain/include/core/Console.h

@@ -1,80 +0,0 @@
-#ifndef CONSOLE_H
-#define CONSOLE_H
-
-#include <OgreColourValue.h>
-#include <OgreLog.h>
-#include <OgreSingleton.h>
-#include <OgreStringVector.h>
-#include <OIS.h>
-#include <list>
-#include <vector>
-
-#include "Event.h"
-
-
-
-class Console : public Ogre::Singleton< Console >, public Ogre::LogListener
-{
-public:
-    Console();
-    ~Console();
-
-    void Input(const QGears::Event& event);
-    void Update();
-    void UpdateDraw();
-    void UpdateNotification();
-    void OnResize();
-
-    void SetToVisible();
-    void SetToHide();
-    bool IsVisible() const;
-
-    void AddTextToOutput( const Ogre::String& text, const Ogre::ColourValue& colour = Ogre::ColourValue::White );
-    void ExecuteCommand( const Ogre::String& command );
-    void ExecuteScript();
-    void CompleteInput();
-    void ResetAutoCompletion();
-    void AddInputToHistory();
-    void SetInputLineFromHistory();
-
-    virtual void messageLogged( const Ogre::String& message, Ogre::LogMessageLevel lml, bool maskDebug, const Ogre::String &logName, bool& skipThisMessage );
-
-private:
-    void LoadHistory();
-    void SaveHistory();
-    void AddToHistory(const Ogre::String& history);
-    char TranslateNumpad(const QGears::Event& event);
-
-    int                           m_ConsoleWidth;
-    int                           m_ConsoleHeight;
-    unsigned int                  m_LineWidth;
-    int                           m_LetterWidth;
-
-    bool                          m_ToVisible;
-    bool                          m_Visible;
-    float                         m_Height;
-
-    struct OutputLine
-    {
-        Ogre::String text;
-        Ogre::ColourValue colour;
-        float time;
-    };
-    std::list< OutputLine >       m_OutputLine;
-    unsigned int                  m_MaxOutputLine; // max number of lines in output list
-    unsigned int                  m_DisplayLine;   // bottom of console displays this line
-    Ogre::String                  m_InputLine;
-    unsigned int                  m_CursorPosition;
-    float                         m_CursorBlinkTime;
-
-    std::list< Ogre::String >     m_History;
-    int                           m_HistoryLineCycleIndex;
-    unsigned int                  m_MaxHistorySize;
-
-    Ogre::StringVector            m_AutoCompletition;
-    unsigned int                  m_AutoCompletitionLine;
-};
-
-
-
-#endif // CONSOLE_H

+ 0 - 98
QGearsMain/include/core/DebugDraw.h

@@ -1,98 +0,0 @@
-#ifndef DEBUG_DRAW_H
-#define DEBUG_DRAW_H
-
-#include <OgreHardwareVertexBuffer.h>
-#include <OgreRenderQueueListener.h>
-#include <OgreRoot.h>
-#include <OgreSingleton.h>
-#include <OgreFont.h>
-
-
-class DebugDraw : public Ogre::RenderQueueListener, public Ogre::Singleton< DebugDraw >
-{
-public:
-    DebugDraw();
-    virtual ~DebugDraw();
-
-    void SetColour( const Ogre::ColourValue& colour );
-    void SetScreenSpace( const bool screen_space );
-    void SetZ( const float z );
-    void SetFadeDistance( const float fade_s, const float fade_e );
-
-    enum TextAlignment
-    {
-        LEFT,
-        RIGHT,
-        CENTER
-    };
-    void SetTextAlignment( TextAlignment alignment );
-
-    void Line( const float x1, const float y1, const float x2, const float y2 );
-    void Line3d( const Ogre::Vector3& point1, const Ogre::Vector3& point2 );
-    void Triangle3d( const Ogre::Vector3& point1, const Ogre::Vector3& point2, const Ogre::Vector3& point3 );
-    void Quad( const float x1, const float y1, const float x2, const float y2, const float x3, const float y3, const float x4, const float y4 );
-    void Text( const float x1, const float y1, const Ogre::String& text );
-    void Text( const Ogre::Vector3& point, const float x, const float y, const Ogre::String& text );
-
-    void renderQueueEnded( Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& repeatThisInvocation );
-
-private:
-    void CreateLineVertexBuffer();
-    void DestroyLineVertexBuffer();
-    void CreateLine3dVertexBuffer();
-    void DestroyLine3dVertexBuffer();
-    void CreateTriangle3dVertexBuffer();
-    void DestroyTriangle3dVertexBuffer();
-    void CreateQuadVertexBuffer();
-    void DestroyQuadVertexBuffer();
-    void CreateTextVertexBuffer();
-    void DestroyTextVertexBuffer();
-
-private:
-    Ogre::SceneManager* m_SceneManager;
-    Ogre::RenderSystem* m_RenderSystem;
-
-    // line
-    Ogre::RenderOperation               m_LineRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_LineVertexBuffer;
-    unsigned int                        m_LineMaxVertexCount;
-
-    // line3d
-    Ogre::RenderOperation               m_Line3dRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_Line3dVertexBuffer;
-    unsigned int                        m_Line3dMaxVertexCount;
-
-    // triangle3d
-    Ogre::RenderOperation               m_Triangle3dRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_Triangle3dVertexBuffer;
-    unsigned int                        m_Triangle3dMaxVertexCount;
-
-    // quad
-    Ogre::RenderOperation               m_QuadRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_QuadVertexBuffer;
-    unsigned int                        m_QuadMaxVertexCount;
-
-    // text
-    Ogre::RenderOperation               m_TextRenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_TextVertexBuffer;
-    unsigned int                        m_TextMaxVertexCount;
-    Ogre::FontPtr                       m_Font;
-    int                                 m_FontHeight;
-    TextAlignment                       m_TextAlignment;
-
-    Ogre::MaterialPtr                   m_Material;
-    Ogre::MaterialPtr                   m_Material3d;
-    Ogre::ColourValue                   m_Colour;
-    bool                                m_ScreenSpace;
-    float                               m_Z;
-    float                               m_FadeStartSquare; // text start fading from this distance
-    float                               m_FadeEndSquare; // text fully faded from this distance
-};
-
-
-
-#define DEBUG_DRAW DebugDraw::getSingleton()
-
-
-
-#endif // DEBUG_DRAW_H

+ 0 - 125
QGearsMain/include/core/DialogsManager.h

@@ -1,125 +0,0 @@
-#ifndef DIALOGS_MANAGER_h
-#define DIALOGS_MANAGER_h
-
-#include <OgreSingleton.h>
-
-#include "UiManager.h"
-#include "UiTextArea.h"
-
-
-
-enum MessageState
-{
-    MS_CLOSED,
-    MS_SHOW_WINDOW,
-    MS_SHOW_TEXT,
-    MS_OPENED,
-    MS_HIDE_WINDOW
-};
-
-
-
-enum MessageStyle
-{
-    MSL_SOLID,
-    MSL_TRANSPARENT,
-    MSL_NONE
-};
-
-
-
-struct MessageData
-{
-    MessageData():
-        widget( NULL ),
-        window( NULL ),
-        scissor( NULL ),
-        text_area( NULL ),
-        cursor( NULL ),
-
-        state( MS_CLOSED ),
-
-        clickable( true ),
-        show_window( true ),
-        show_cursor( false ),
-        auto_close( false ),
-
-        cursor_percent_y( 0 ),
-        cursor_y( 0 ),
-        cursor_row_selected( 0 ),
-        cursor_row_current( 0 ),
-        cursor_row_first( 0 ),
-        cursor_row_last( 0 )
-    {
-    }
-
-    UiWidget* widget;
-    UiWidget* window;
-    UiWidget* scissor;
-    UiTextArea* text_area;
-    UiWidget* cursor;
-
-    MessageState state;
-    int x = 0;
-    int y = 0;
-    int w = 0;
-    int h = 0;
-
-    std::vector< ScriptId > sync;
-
-    bool clickable;
-    bool show_window;
-    bool show_cursor;
-    bool auto_close;
-
-    float cursor_percent_y;
-    float cursor_y;
-    int cursor_row_selected;
-    int cursor_row_current;
-    int cursor_row_first;
-    int cursor_row_last;
-};
-
-
-
-class DialogsManager : public Ogre::Singleton< DialogsManager >
-{
-public:
-    DialogsManager();
-    virtual ~DialogsManager();
-
-    void Initialise();
-    void Input( const QGears::Event& event );
-    void Update();
-    void Clear();
-
-    void OpenDialog(const char* d_name, int x, int y, int w, int h); // aka dialog_open
-    void SetText( const char* d_name, const char* text ); // aka dialog_set_text
-    int Sync( const char* d_name ); // aka dialog_wait_for_close
-    void Hide(const char* d_name); // aka dialog_close
-
-    void SetVariable( const char* d_name, const char* name, const char* value );
-
-    void SetClickable( const char* d_name, const bool clickable );
-    void SetCursor( const char* d_name, const int first_row, const int last_row );
-    int GetCursor( const char* d_name ) const;
-
-private:
-    void ShowMessage( const int id, const int x, const int y, const int width, const int height );
-    void HideMessage( const int id );
-    int GetMessageId( const char* d_name ) const;
-    bool AutoCloseCheck( const unsigned int id );
-
-private:
-    UiWidget* m_LimitArea;
-    std::vector< MessageData* > m_Messages;
-
-    bool m_NextPressed;
-    bool m_NextRepeated;
-    bool m_UpPressed;
-    bool m_DownPressed;
-};
-
-
-
-#endif // DIALOGS_MANAGER_H

+ 0 - 282
QGearsMain/include/core/Entity.h

@@ -1,282 +0,0 @@
-#ifndef ENTITY_H
-#define ENTITY_H
-
-#include <OgreString.h>
-
-#include "EntityCollision.h"
-#include "EntityDirection.h"
-#include "ScriptManager.h"
-
-
-
-enum ActionType
-{
-    AT_NONE,
-    AT_LINEAR,
-    AT_SMOOTH
-};
-
-
-
-enum TurnDirection
-{
-    TD_CLOCKWISE,
-    TD_ANTICLOCKWISE,
-    TD_CLOSEST
-};
-
-
-
-enum LinearMovement
-{
-    LM_UP_TO_DOWN,
-    LM_DOWN_TO_UP,
-    LM_LEFT_TO_RIGHT,
-    LM_RIGHT_TO_LEFT
-};
-
-
-
-class Entity
-{
-public:
-    enum AnimationState
-    {
-        REQUESTED_ANIMATION,
-        AUTO_ANIMATION
-    };
-
-    enum AnimationPlayType
-    {
-        PLAY_DEFAULT,
-        PLAY_ONCE,
-        PLAY_LOOPED
-    };
-
-    enum State
-    {
-        NONE,
-        WALKMESH,
-        LINEAR,
-        JUMP
-    };
-
-                         Entity( const Ogre::String& name, Ogre::SceneNode* node );
-    virtual              ~Entity();
-
-    virtual void         Update();
-    virtual void         UpdateDebug();
-
-    const Ogre::String&  GetName() const;
-
-    void                 SetPosition( const Ogre::Vector3& position );
-    void                 ScriptSetPosition( const float x, const float y, const float z );
-    const Ogre::Vector3  GetPosition() const;
-    void                 ScriptGetPosition() const;
-
-    void                 SetOffset( const Ogre::Vector3& position );
-    const Ogre::Vector3  GetOffset() const;
-
-    void                 SetRotation( const Ogre::Degree& rotation );
-    void                 ScriptSetRotation( const float rotation );
-    Ogre::Degree         GetRotation() const;
-    float                ScriptGetRotation() const;
-
-    virtual void         setScale( const Ogre::Vector3 &scale );
-    virtual void         setRootOrientation( const Ogre::Quaternion &root_orientation );
-
-    // height related
-    float                GetHeight() const;
-
-    // solid related
-    void                 SetSolidRadius( const float radius );
-    float                GetSolidRadius() const;
-    void                 SetSolid( const bool solid );
-    bool                 IsSolid() const;
-
-    // talk related
-    void                 SetTalkRadius( const float radius );
-    float                GetTalkRadius() const;
-    void                 SetTalkable( const bool talkable );
-    bool                 IsTalkable() const;
-
-    // model related
-    virtual void         SetVisible( const bool visible ) = 0;
-    virtual bool         IsVisible() const = 0;
-
-    // different type of movement state related
-    void                 SetState( const State state );
-    State                GetState() const;
-
-    // movement related
-    void                 SetMoveAutoSpeed( const float speed );
-    float                GetMoveAutoSpeed() const;
-    void                 SetMoveWalkSpeed( const float speed );
-    float                GetMoveWalkSpeed() const;
-    void                 SetMoveRunSpeed( const float speed );
-    float                GetMoveRunSpeed() const;
-    void                 SetMovePosition( const Ogre::Vector3& target );
-    const Ogre::Vector3& GetMovePosition() const;
-    float                GetMoveStopDistance() const;
-    void                 SetMoveTriangleId( const int triangle );
-    int                  GetMoveTriangleId() const;
-    void                 SetMoveAutoRotation( const bool rotate );
-    bool                 GetMoveAutoRotation() const;
-    void                 SetMoveAutoAnimation( const bool animate );
-    bool                 GetMoveAutoAnimation() const;
-    const Ogre::String&  GetMoveAnimationWalkName() const;
-    const Ogre::String&  GetMoveAnimationRunName() const;
-    void                 ScriptMoveToPosition( const float x, const float y );
-    void                 ScriptMoveToEntity( Entity* entity );
-    int                  ScriptMoveSync();
-    void                 UnsetMove();
-
-    // linear related
-    void                 ScriptLinearToPosition( const float x, const float y, const float z, const LinearMovement movement, const char* animation );
-    int                  ScriptLinearSync();
-    void                 SetLinear( const Ogre::Vector3& end, const LinearMovement movement, const Ogre::String& animation );
-    void                 UnsetLinear();
-    LinearMovement       GetLinearMovement() const;
-    const Ogre::Vector3& GetLinearStart() const;
-    const Ogre::Vector3& GetLinearEnd() const;
-
-    // jump related
-    void                 ScriptJumpToPosition( const float x, const float y, const float z,const float seconds );
-    int                  ScriptJumpSync();
-    void                 SetJump( const Ogre::Vector3& jump_to, const float seconds );
-    void                 UnsetJump();
-    const Ogre::Vector3& GetJumpStart() const;
-    const Ogre::Vector3& GetJumpEnd() const;
-    float                GetJumpSeconds() const;
-    void                 SetJumpCurrentSeconds( const float seconds );
-    float                GetJumpCurrentSeconds() const;
-
-    // offset related
-    void                 ScriptOffsetToPosition( const float x, const float y, const float z, const ActionType type, const float seconds );
-    int                  ScriptOffsetSync();
-    void                 UnsetOffset();
-    const Ogre::Vector3& GetOffsetPositionStart() const;
-    const Ogre::Vector3& GetOffsetPositionEnd() const;
-    ActionType           GetOffsetType() const;
-    float                GetOffsetSeconds() const;
-    void                 SetOffsetCurrentSeconds( const float seconds );
-    float                GetOffsetCurrentSeconds() const;
-
-    // turn related
-    void                 ScriptTurnToDirection( const float direction, const TurnDirection turn_direction, const ActionType turn_type, const float seconds );
-    void                 ScriptTurnToEntity( Entity* entity, const TurnDirection turn_direction, const float seconds );
-    int                  ScriptTurnSync();
-    void                 SetTurn( const Ogre::Degree& direction_to, Entity* entity, const TurnDirection turn_direction, const ActionType turn_type, const float seconds );
-    void                 UnsetTurn();
-    Ogre::Degree         CalculateTurnAngle( const Ogre::Degree& start, const Ogre::Degree& end ) const;
-    Ogre::Degree         GetTurnDirectionStart() const;
-    Ogre::Degree         GetTurnDirectionEnd() const;
-    ActionType           GetTurnType() const;
-    float                GetTurnSeconds() const;
-    void                 SetTurnCurrentSeconds( const float seconds );
-    float                GetTurnCurrentSeconds() const;
-
-    // animation related
-    void                 ScriptSetAnimationSpeed( const float speed );
-    const Ogre::String&  GetDefaultAnimationName() const;
-    const Ogre::String&  GetCurrentAnimationName() const;
-    AnimationState       GetAnimationState() const;
-    virtual void         PlayAnimation( const Ogre::String& animation, AnimationState state, AnimationPlayType play_type, const float start, const float end ) = 0;
-    virtual void         PlayAnimationContinue( const Ogre::String& animation ) = 0;
-    virtual void         UpdateAnimation( const float delta ) = 0;
-    void                 ScriptPlayAnimation( const char* name );
-    void                 ScriptPlayAnimationStop( const char* name );
-    void                 ScriptPlayAnimation( const char* name, const float start, const float end );
-    void                 ScriptPlayAnimationStop( const char* name, const float start, const float end );
-    void                 ScriptSetDefaultAnimation( const char* animation );
-    int                  ScriptAnimationSync();
-
-private:
-    Entity();
-    Ogre::Degree         GetDirectionToEntity( Entity* entity ) const;
-
-protected:
-    Ogre::String            m_Name;
-
-    Ogre::SceneNode*        m_SceneNode;
-    Ogre::SceneNode*        m_ModelNode;
-    Ogre::SceneNode*        m_model_root_node;
-
-    // height related
-    float                   m_Height;
-
-    Ogre::SceneNode*        m_DirectionNode;
-    EntityDirection*        m_Direction;
-
-    // collision related
-    Ogre::SceneNode*        m_SolidCollisionNode;
-    EntityCollision*        m_SolidCollision;
-    float                   m_SolidRadius;
-    bool                    m_Solid;
-
-    // talk related
-    Ogre::SceneNode*        m_TalkCollisionNode;
-    EntityCollision*        m_TalkCollision;
-    float                   m_TalkRadius;
-    bool                    m_Talkable;
-
-    // move state related
-    State                   m_State;
-    std::vector< ScriptId > m_Sync;
-
-    // move related
-    float                   m_MoveAutoSpeed;
-    float                   m_MoveWalkSpeed;
-    float                   m_MoveRunSpeed;
-    Ogre::Vector3           m_MovePosition;
-    Entity*                 m_MoveEntity;
-    float                   m_MoveStopDistance;
-    int                     m_MoveTriangleId;
-    bool                    m_MoveAutoRotation;
-    bool                    m_MoveAutoAnimation;
-    Ogre::String            m_MoveAnimationWalk;
-    Ogre::String            m_MoveAnimationRun;
-
-    // linear movement related
-    LinearMovement          m_LinearMovement;
-    Ogre::Vector3           m_LinearStart;
-    Ogre::Vector3           m_LinearEnd;
-
-    // jump related
-    Ogre::Vector3           m_JumpStart;
-    Ogre::Vector3           m_JumpEnd;
-    float                   m_JumpSeconds;
-    float                   m_JumpCurrentSeconds;
-
-    // offset related
-    Ogre::Vector3           m_OffsetPositionStart;
-    Ogre::Vector3           m_OffsetPositionEnd;
-    ActionType              m_OffsetType;
-    float                   m_OffsetSeconds;
-    float                   m_OffsetCurrentSeconds;
-    std::vector< ScriptId > m_OffsetSync;
-
-    // turn related
-    TurnDirection           m_TurnDirection;
-    Ogre::Degree            m_TurnDirectionStart;
-    Ogre::Degree            m_TurnDirectionEnd;
-    Entity*                 m_TurnEntity;
-    ActionType              m_TurnType;
-    float                   m_TurnSeconds;
-    float                   m_TurnCurrentSeconds;
-    std::vector< ScriptId > m_TurnSync;
-
-    // animation
-    float                   m_AnimationSpeed;
-    Ogre::String            m_AnimationCurrentName;
-    std::vector< ScriptId > m_AnimationSync;
-    AnimationState          m_AnimationState;
-    AnimationPlayType       m_AnimationPlayType;
-    Ogre::String            m_AnimationDefault;
-    float                   m_AnimationEndTime;
-    bool                    m_AnimationAutoPlay;
-};
-
-
-
-#endif // ENTITY_H

+ 0 - 21
QGearsMain/include/core/EntityCollision.h

@@ -1,21 +0,0 @@
-#ifndef ENTITY_COLLISION_H
-#define ENTITY_COLLISION_H
-
-#include <OgreCamera.h>
-#include <OgreSimpleRenderable.h>
-
-
-
-class EntityCollision : public Ogre::SimpleRenderable
-{
-public:
-    EntityCollision();
-    virtual ~EntityCollision();
-
-    Ogre::Real getSquaredViewDepth( const Ogre::Camera* cam ) const;
-    Ogre::Real getBoundingRadius() const;
-};
-
-
-
-#endif // ENTITY_COLLISION_H

+ 0 - 21
QGearsMain/include/core/EntityDirection.h

@@ -1,21 +0,0 @@
-#ifndef ENTITY_DIRECTION_H
-#define ENTITY_DIRECTION_H
-
-#include <OgreCamera.h>
-#include <OgreSimpleRenderable.h>
-
-
-
-class EntityDirection : public Ogre::SimpleRenderable
-{
-public:
-    EntityDirection();
-    virtual ~EntityDirection();
-
-    Ogre::Real getSquaredViewDepth( const Ogre::Camera* cam ) const;
-    Ogre::Real getBoundingRadius() const;
-};
-
-
-
-#endif // ENTITY_DIRECTION_H

+ 0 - 91
QGearsMain/include/core/EntityManager.h

@@ -1,91 +0,0 @@
-#ifndef ENTITY_MANAGER_H
-#define ENTITY_MANAGER_H
-
-#include <OgreSingleton.h>
-
-#include "Background2D.h"
-#include "Entity.h"
-#include "EntityPoint.h"
-#include "EntityTrigger.h"
-#include "Event.h"
-#include "Walkmesh.h"
-
-
-
-class EntityManager : public Ogre::Singleton< EntityManager >
-{
-public:
-    EntityManager();
-    virtual ~EntityManager();
-
-    void Input(const QGears::Event& event);
-    void Update();
-    void UpdateDebug();
-    void OnResize();
-
-    void Clear();
-
-    void ScriptSetPaused( const bool paused );
-
-    Walkmesh* GetWalkmesh();
-    Background2D* GetBackground2D();
-    void AddEntity( const Ogre::String& name, const Ogre::String& file_name, const Ogre::Vector3& position, const Ogre::Degree& direction );
-    void AddEntity( const Ogre::String& name, const Ogre::String& file_name, const Ogre::Vector3& position, const Ogre::Degree& rotation, const Ogre::Vector3& scale, const Ogre::Quaternion& root_orientation );
-    void ScriptAddEntity( const char* name, const char* file_name, const float x, const float y, const float z, const float direction );
-    void AddEntityTrigger( const Ogre::String& name, const Ogre::Vector3& point1, const Ogre::Vector3& point2, const bool enabled );
-    void AddEntityPoint( const Ogre::String& name, const Ogre::Vector3& position, const float rotation );
-    void AddEntityScript( const Ogre::String& name );
-    void ScriptAddEntityScript( const char* name );
-
-    Entity* GetEntity( const Ogre::String& name ) const;
-    Entity* ScriptGetEntity( const char* name ) const;
-    EntityPoint* ScriptGetEntityPoint( const char* name ) const;
-
-    void ScriptSetPlayerEntity( const char* name );
-    void ScriptUnsetPlayerEntity();
-    void ScriptPlayerLock( const bool lock );
-    void SetPlayerMoveRotation( const Ogre::Radian rotation );
-
-private:
-    // movement
-    bool SetEntityOnWalkmesh( Entity* entity );
-    bool PerformWalkmeshMove( Entity* entity, const float speed );
-    bool WalkmeshBorderCross( Entity* entity, Ogre::Vector3& position, const Ogre::Vector2& move_vector );
-    bool CheckSolidCollisions( Entity* entity, Ogre::Vector3& position );
-    void SetEntityDirectionByVector( Entity* entity, const Ogre::Vector2& vector );
-    void CheckTriggers( Entity* entity, Ogre::Vector3& position );
-    void CheckEntityInteract();
-
-    void SetNextOffsetStep( Entity* entity );
-    void SetNextTurnStep( Entity* entity );
-    void SetNextLinearStep( Entity* entity );
-    void SetNextJumpStep( Entity* entity );
-    void SetNextScrollStep();
-
-private:
-    bool                          m_Paused;
-
-    Walkmesh                      m_Walkmesh;
-    Background2D                  m_Background2D;
-
-    Ogre::String                  m_EntityTableName;
-    std::vector< Entity* >        m_Entity;
-    Entity*                       m_PlayerEntity;
-    Ogre::Vector3                 m_PlayerMove;
-    Ogre::Radian                  m_PlayerMoveRotation;
-    bool                          m_PlayerLock;
-    bool                          m_PlayerRun;
-
-    std::vector< EntityTrigger* > m_EntityTriggers;
-    std::vector< EntityPoint* >   m_EntityPoints;
-    std::vector< Ogre::String >   m_EntityScripts;
-
-    Ogre::SceneNode*              m_SceneNode;
-
-    Ogre::Entity*                 m_Grid;
-    Ogre::Entity*                 m_Axis;
-};
-
-
-
-#endif // ENTITY_MANAGER_H

+ 0 - 35
QGearsMain/include/core/EntityModel.h

@@ -1,35 +0,0 @@
-#ifndef ENTITY_MODEL_H
-#define ENTITY_MODEL_H
-
-#include "Entity.h"
-
-
-
-class EntityModel : public Entity
-{
-public:
-                        EntityModel( const Ogre::String& name, const Ogre::String file_name, Ogre::SceneNode* node );
-    virtual             ~EntityModel();
-
-    virtual void        Update();
-
-    // model related
-    virtual void        SetVisible( const bool visible );
-    virtual bool        IsVisible() const;
-
-    // animation related
-    virtual void        PlayAnimation( const Ogre::String& animation, AnimationState state, AnimationPlayType play_type, const float start, const float end );
-    virtual void        PlayAnimationContinue( const Ogre::String& animation );
-    virtual void        UpdateAnimation( const float delta );
-
-private:
-    EntityModel();
-
-private:
-    Ogre::Entity* m_Model;
-    Ogre::AnimationState* m_AnimationCurrent;
-};
-
-
-
-#endif // ENTITY_MODEL_H

+ 0 - 34
QGearsMain/include/core/EntityPoint.h

@@ -1,34 +0,0 @@
-#ifndef ENTITY_POINT_H
-#define ENTITY_POINT_H
-
-#include <OgreRoot.h>
-
-
-
-class EntityPoint
-{
-public:
-    EntityPoint( const Ogre::String& name );
-    virtual ~EntityPoint();
-
-    void UpdateDebug();
-
-    const Ogre::String& GetName() const;
-
-    void SetPosition( const Ogre::Vector3& point );
-    const Ogre::Vector3& GetPosition() const;
-    void ScriptGetPosition() const;
-
-    void SetRotation( const float rotation );
-    float GetRotation() const;
-    float ScriptGetRotation() const;
-
-protected:
-    Ogre::String m_Name;
-    Ogre::Vector3 m_Position;
-    float m_Rotation;
-};
-
-
-
-#endif // ENTITY_POINT_H

+ 0 - 44
QGearsMain/include/core/EntityTrigger.h

@@ -1,44 +0,0 @@
-#ifndef ENTITY_TRIGGER_H
-#define ENTITY_TRIGGER_H
-
-#include <OgreRoot.h>
-
-class Entity;
-
-
-
-class EntityTrigger
-{
-public:
-    EntityTrigger( const Ogre::String& name );
-    virtual ~EntityTrigger();
-
-    void UpdateDebug();
-
-    const Ogre::String& GetName() const;
-
-    void SetEnabled( const bool enabled );
-    bool IsEnabled() const;
-
-    void AddActivator( Entity* activator );
-    void RemoveActivator( Entity* activator );
-    bool IsActivator( Entity* activator );
-
-    void SetPoints( const Ogre::Vector3& point1, const Ogre::Vector3& point2 );
-    const Ogre::Vector3& GetPoint1() const;
-    const Ogre::Vector3& GetPoint2() const;
-
-protected:
-    Ogre::String m_Name;
-
-    bool m_Enabled;
-
-    std::vector< Entity* > m_Activators;
-
-    Ogre::Vector3 m_Point1;
-    Ogre::Vector3 m_Point2;
-};
-
-
-
-#endif // ENTITY_TRIGGER_H

+ 0 - 53
QGearsMain/include/core/Event.h

@@ -1,53 +0,0 @@
-#pragma once
-
-// add this include because this is only common file between everything that uses Input fucntion
-#include <OIS.h>
-
-
-namespace QGears
-{
-    enum EventType
-    {
-        ET_NULL = 0,
-        ET_KEY_PRESS,
-        ET_KEY_REPEAT,
-		ET_KEY_REPEAT_WAIT,
-        ET_KEY_IMPULSE,
-        ET_KEY_RELEASE,
-        ET_MOUSE_PRESS,
-        ET_MOUSE_RELEASE,
-        ET_MOUSE_MOVE,
-        ET_MOUSE_SCROLL
-    };
-
-
-
-    struct Event
-    {
-        Event() :
-            type(ET_NULL),
-            param1(0),
-            param2(0)
-        {
-        };
-
-        Event(EventType n) :
-            type(n),
-            param1(0),
-            param2(0)
-        {
-        };
-
-        Event(EventType n, float p1, float p2) :
-            type(n),
-            param1(p1),
-            param2(p2)
-        {
-        };
-
-        EventType type;
-        float param1;
-        float param2;
-        Ogre::String event;
-    };
-}

+ 0 - 42
QGearsMain/include/core/GameFrameListner.h

@@ -1,42 +0,0 @@
-#ifndef GAME_FRAME_LISTENER_H
-#define GAME_FRAME_LISTENER_H
-
-#include <OgreFrameListener.h>
-#include <OgreRenderWindow.h>
-#include <OgreWindowEventUtilities.h>
-#include <OIS.h>
-
-
-
-class GameFrameListener : public Ogre::FrameListener, public Ogre::WindowEventListener, public OIS::KeyListener, public OIS::MouseListener
-{
-public:
-                 GameFrameListener( Ogre::RenderWindow* win );
-    virtual     ~GameFrameListener();
-
-    bool         frameStarted( const Ogre::FrameEvent& evt );
-    bool         frameEnded( const Ogre::FrameEvent& evt );
-
-    virtual void windowMoved( Ogre::RenderWindow *rw );
-    virtual void windowResized( Ogre::RenderWindow *rw );
-    virtual void windowClosed( Ogre::RenderWindow* rw );
-    virtual void windowFocusChange( Ogre::RenderWindow *rw );
-
-    bool         keyPressed( const OIS::KeyEvent& e );
-    bool         keyReleased( const OIS::KeyEvent& e );
-
-    bool         mouseMoved( const OIS::MouseEvent &e );
-    bool         mousePressed( const OIS::MouseEvent &e, OIS::MouseButtonID id );
-    bool         mouseReleased( const OIS::MouseEvent &e, OIS::MouseButtonID id );
-
-protected:
-    Ogre::RenderWindow* m_Window;
-
-    OIS::InputManager*  m_InputManager;
-    OIS::Keyboard*      m_Keyboard;
-    OIS::Mouse*         m_Mouse;
-};
-
-
-
-#endif // GAME_FRAME_LISTENER_H

+ 0 - 73
QGearsMain/include/core/InputManager.h

@@ -1,73 +0,0 @@
-#ifndef INPUT_FILTER_H
-#define INPUT_FILTER_H
-
-#include <OgreSingleton.h>
-#include <OgreString.h>
-#include <OIS.h>
-#include <vector>
-
-#include "Event.h"
-
-
-
-typedef std::vector< QGears::Event > InputEventArray;
-typedef std::vector< int > ButtonList;
-
-class ConfigCmd;
-
-class InputManager : public Ogre::Singleton< InputManager >
-{
-public:
-                        InputManager();
-    virtual             ~InputManager();
-
-    void                ButtonPressed( int button, char text, bool down );
-    void                MousePressed( int button, bool down );
-    void                MouseMoved( int x, int y );
-    void                MouseScrolled( int value );
-    void                Reset();
-    void                Update();
-
-    bool                IsButtonPressed( int button ) const;
-
-    void                GetInputEvents( InputEventArray& input_events );
-
-    // binds
-    void                InitCmd();
-    void                BindCommand( ConfigCmd* cmd, const Ogre::StringVector& params, const ButtonList& buttons );
-    void                BindGameEvent( const Ogre::String& event, const ButtonList& buttons );
-    void                ActivateBinds( const int button );
-    void                AddGameEvents( const int button, const QGears::EventType type );
-
-private:
-    bool                    m_ButtonState[ 256 ];
-    char                    m_ButtonText[ 256 ];
-
-    bool                    m_RepeatFirstWait;
-    float                   m_RepeatTimer;
-
-    InputEventArray         m_EventQueue;
-
-    // binds
-    struct BindInfo
-    {
-        BindInfo():
-            cmd( NULL )
-        {}
-
-        ConfigCmd* cmd;
-        Ogre::StringVector params;
-        ButtonList buttons;
-    };
-    std::vector< BindInfo > m_Binds;
-    struct BindGameEventInfo
-    {
-        Ogre::String event;
-        ButtonList buttons;
-    };
-    std::vector< BindGameEventInfo > m_BindGameEvents;
-};
-
-
-
-#endif // INPUT_FILTER_H

+ 0 - 92
QGearsMain/include/core/InputManagerCommands.h

@@ -1,92 +0,0 @@
-#include <OgreStringConverter.h>
-
-#include "Console.h"
-#include "ConfigCmdManager.h"
-#include "ConfigVarManager.h"
-#include "Logger.h"
-#include "Utilites.h"
-
-
-
-bool
-ParseKeys( const Ogre::String& string, ButtonList& key_codes )
-{
-    Ogre::StringVector keys = Ogre::StringUtil::split( string, "+" );
-
-    for( unsigned int i = 0; i < keys.size(); ++i )
-    {
-        key_codes.push_back( StringToKey( keys[ i ] ) );
-    }
-
-    bool fail = false;
-    for( unsigned int i = 0; i < key_codes.size(); ++i )
-    {
-        if( key_codes[ i ] == OIS::KC_UNASSIGNED )
-        {
-            LOG_ERROR( "Failed to parse key string \"" + string + "\". Can't recognize key " + Ogre::StringConverter::toString( i ) );
-            fail = true;
-        }
-    }
-
-    return fail;
-}
-
-
-
-void
-CmdBind( const Ogre::StringVector& params )
-{
-    if( params.size() != 3 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /bind <key1>+[key2]+[key3] \"<command line>\"" );
-        return;
-    }
-
-    ButtonList key_codes;
-
-    if( ParseKeys( params[ 1 ], key_codes ) == false )
-    {
-        Ogre::StringVector params_cmd = StringTokenise( params[ 2 ] );
-
-        // handle command
-        ConfigCmd* cmd = ConfigCmdManager::getSingleton().Find( params_cmd[ 0 ] );
-        if( cmd != NULL )
-        {
-            InputManager::getSingleton().BindCommand( cmd, params_cmd, key_codes );
-            LOG_TRIVIAL( "Bind \"" + params[ 1 ] + "\" to command \"" + params[ 2 ] + "\"." );
-        }
-        else
-        {
-            LOG_ERROR( "Can't find command \"" + params_cmd[ 0 ] + "\" in bind command \"" + params[ 2 ] + "\"." );
-        }
-    }
-}
-
-
-
-void
-CmdBindGameEvent( const Ogre::StringVector& params )
-{
-    if( params.size() != 3 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /game_bind <key1>+[key2]+[key3] \"<game event>\"" );
-        return;
-    }
-
-    ButtonList key_codes;
-
-    if( ParseKeys( params[ 1 ], key_codes ) == false )
-    {
-        InputManager::getSingleton().BindGameEvent( params[ 2 ], key_codes );
-        LOG_TRIVIAL( "Bind \"" + params[ 1 ] + "\" to game event \"" + params[ 2 ] + "\"." );
-    }
-}
-
-
-
-void
-InputManager::InitCmd()
-{
-    ConfigCmdManager::getSingleton().AddCommand( "bind", "Bind command to keys", "", CmdBind, NULL );
-    ConfigCmdManager::getSingleton().AddCommand( "bind_game_event", "Bind game event to keys", "", CmdBindGameEvent, NULL );
-}

+ 0 - 23
QGearsMain/include/core/Logger.h

@@ -1,23 +0,0 @@
-#ifndef LOGGER_H
-#define LOGGER_H
-
-#include <OgreLogManager.h>
-#include <OgreString.h>
-#include <OgreStringConverter.h>
-#include <string>
-
-
-#define LOG_ERROR( message ) Ogre::LogManager::getSingleton().logMessage( "[ERROR] " + Ogre::String( __FILE__ ) + " " + Ogre::StringConverter::toString( __LINE__ ) + ": " + message, Ogre::LML_CRITICAL )
-#define LOG_WARNING( message ) Ogre::LogManager::getSingleton().logMessage( "[WARNING] " + Ogre::String( __FILE__ ) + " " + Ogre::StringConverter::toString( __LINE__ ) + ": " + message, Ogre::LML_NORMAL )
-#define LOG_TRIVIAL( message ) Ogre::LogManager::getSingleton().logMessage( message, Ogre::LML_TRIVIAL )
-#define LOG_CONSOLE( message) Ogre::LogManager::getSingleton().logMessage( message, Ogre::LML_NORMAL )
-
-#ifdef _MSC_VER
-#define LOG_DEBUG_EX( message ) Ogre::LogManager::getSingleton().logMessage( "[DEBUG] (" +  __FILE__ + " " + Ogre::StringConverter::toString( __LINE__ ) + ")(" + std::string( __FUNCTION__ ) + "): " + message, Ogre::LML_CRITICAL )
-#define LOG_DEBUG( message ) Ogre::LogManager::getSingleton().logMessage( "[DEBUG] (" + std::string( __FUNCTION__ ) + "): " + message, Ogre::LML_CRITICAL )
-#else
-#define LOG_DEBUG_EX( message ) Ogre::LogManager::getSingleton().logMessage( "[DEBUG] (" +  __FILE__ + " " + Ogre::StringConverter::toString( __LINE__ ) + ")(" + std::string( __PRETTY_FUNCTION__ ) + "): " + message, Ogre::LML_CRITICAL )
-#define LOG_DEBUG( message ) Ogre::LogManager::getSingleton().logMessage( "[DEBUG] (" + std::string( __PRETTY_FUNCTION__ ) + "): " + message, Ogre::LML_CRITICAL )
-#endif
-
-#endif // LOGGER_H

+ 0 - 37
QGearsMain/include/core/Module.h

@@ -1,37 +0,0 @@
-#ifndef MODULE_H
-#define MODULE_H
-
-#include <OIS.h>
-#include "Event.h"
-
-
-
-enum MODULE_STATE
-{
-    MODULE_START,
-    MODULE_RUN,
-    MODULE_FINISH,
-    MODULE_STOP,
-    MODULE_PAUSE
-};
-
-
-
-class Module
-{
-public:
-    virtual ~Module(){};
-
-    virtual void Input(const Event& event) = 0;
-    virtual void Update() = 0;
-
-    void SetState(const MODULE_STATE state) {m_State = state;};
-    const MODULE_STATE GetState() const {return m_State;};
-
-private:
-    MODULE_STATE m_State;
-};
-
-
-
-#endif // MODULE_H

+ 0 - 127
QGearsMain/include/core/ScriptManager.h

@@ -1,127 +0,0 @@
-#ifndef SCRIPT_MANAGER_H
-#define SCRIPT_MANAGER_H
-
-#include <OgreSingleton.h>
-#include <OgreString.h>
-
-#include "Event.h"
-#include "LuaIncludes.h"
-
-class Entity;
-
-struct ScriptId
-{
-    ScriptId(): entity( "" ), function( "" ){}
-
-    Ogre::String entity;
-    Ogre::String function;
-};
-
-
-
-struct ScriptEntity;
-
-
-
-struct QueueScript
-{
-    QueueScript():
-        function( "" ),
-        argument1( "" ),
-        argument2( "" ),
-        priority( 0 ),
-        state( NULL ),
-        seconds_to_wait( 0 ),
-        wait( false ),
-        yield( false )
-    {}
-
-    Ogre::String function;
-    Ogre::String argument1;
-    Ogre::String argument2;
-    int priority;
-    lua_State* state;
-    int state_id; // for storing and deleating thread
-    float seconds_to_wait;
-    bool wait;
-    bool yield;
-    ScriptId paused_script_start; // script paused by call of this script.
-    ScriptId paused_script_end; // script paused by call of this script.
-};
-
-
-
-class ScriptManager : public Ogre::Singleton< ScriptManager >
-{
-public:
-    enum Type
-    {
-        SYSTEM,
-        ENTITY,
-        UI
-    };
-
-    ScriptManager();
-    virtual ~ScriptManager();
-
-    void Input(const QGears::Event& event);
-    void Update( const Type type );
-
-    void RunString( const Ogre::String& lua );
-    void RunFile( const Ogre::String& file );
-
-    // binds
-    void InitBinds();
-    void InitCmd();
-
-    void AddEntity( const Type type, const Ogre::String& entity_name, Entity* entity );
-    void RemoveEntity( const Type type, const Ogre::String& entity_name );
-    void AddEntityScript( const Ogre::String& entity_name, const Ogre::String& function_name, int priority );
-    void RemoveEntityTopScript( ScriptEntity& entity );
-
-    luabind::object GetTableByEntityName( const ScriptManager::Type type, const Ogre::String& name, lua_State* state ) const;
-    QueueScript* GetScriptByScriptId( const ScriptId& script ) const;
-    ScriptEntity* GetScriptEntityByName( const Type type, const Ogre::String& entity_name ) const;
-    const ScriptId GetCurrentScriptId() const;
-    void ContinueScriptExecution( const ScriptId& script );
-
-    int ScriptWait( const float seconds );
-    void ScriptRequest( const Type type, const char* entity, const char* function, const int priority );
-    int ScriptRequestStartSync( const Type type, const char* entity, const char* function, const int priority );
-    int ScriptRequestEndSync( const Type type, const char* entity, const char* function, const int priority );
-    bool ScriptRequest( ScriptEntity* script_entity, const Ogre::String& function, const int priority, const Ogre::String& argument1, const Ogre::String& argument2, bool start_sync, bool end_sync );
-
-    void AddValueToStack( const float value );
-
-private:
-    lua_State* m_LuaState;
-
-    Ogre::String m_SystemTableName;
-    Ogre::String m_EntityTableName;
-    Ogre::String m_UiTableName;
-
-    std::vector< ScriptEntity > m_ScriptEntity;
-
-    ScriptId m_CurrentScriptId;
-};
-
-
-
-struct ScriptEntity
-{
-    ScriptEntity():
-        name( "" ),
-        type( ScriptManager::SYSTEM ),
-        resort( false )
-    {
-    }
-
-    Ogre::String name;
-    ScriptManager::Type type;
-    std::vector< QueueScript > queue;
-    bool resort;
-};
-
-
-
-#endif // SCRIPT_MANAGER_H

+ 0 - 257
QGearsMain/include/core/ScriptManagerBinds.h

@@ -1,257 +0,0 @@
-#include "Console.h"
-#include "Logger.h"
-#include "Entity.h"
-#include "EntityManager.h"
-#include "Timer.h"
-#include "UiManager.h"
-#include "UiWidget.h"
-#include "XmlMapFile.h"
-#include "XmlMapsFile.h"
-#include "DialogsManager.h"
-
-#include "modules/worldmap/WorldMapModule.h"
-
-void
-ScriptPrint( const char* text )
-{
-    Console::getSingleton().AddTextToOutput( text );
-}
-
-
-
-void
-ScriptMap( const char* text )
-{
-    EntityManager::getSingleton().Clear();
-
-    XmlMapsFile xml( "./data/maps.xml" );
-    Ogre::String file_name = xml.GetMapFileNameByName( text );
-
-    XmlMapFile xml_map( "./data/" + file_name );
-    xml_map.LoadMap();
-}
-
-
-
-void
-ScriptConsole( const char* text )
-{
-    Console::getSingleton().ExecuteCommand( text );
-}
-
-
-
-void
-ScriptManager::InitBinds()
-{
-    // globals
-    luabind::module( m_LuaState )
-    [
-        luabind::def( "print", ( void( * )( const char* ) ) &ScriptPrint ),
-        luabind::def( "map", ( void( * )( const char* ) ) &ScriptMap ),
-        luabind::def( "console", ( void( * )( const char* ) ) &ScriptConsole )
-    ];
-
-    // entity access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< Entity >( "Entity" )
-            .def( "set_position", ( void( Entity::* )( const float, const float, const float ) ) &Entity::ScriptSetPosition )
-            .def( "get_position", ( void( Entity::* )() ) &Entity::ScriptGetPosition ) // return 3 values internaly
-            .def( "set_rotation", ( void( Entity::* )( const float ) ) &Entity::ScriptSetRotation )
-            .def( "get_rotation", ( float( Entity::* )() ) &Entity::ScriptGetRotation )
-            .def( "set_solid_radius", ( void( Entity::* )( const float ) ) &Entity::SetSolidRadius )
-            .def( "get_solid_radius", ( float( Entity::* )() ) &Entity::GetSolidRadius )
-            .def( "set_solid", ( void( Entity::* )( const bool ) ) &Entity::SetSolid )
-            .def( "is_solid", ( bool( Entity::* )() ) &Entity::IsSolid )
-            .def( "set_talk_radius", ( void( Entity::* )( const float ) ) &Entity::SetTalkRadius )
-            .def( "get_talk_radius", ( float( Entity::* )() ) &Entity::GetTalkRadius )
-            
-            // Some old test script use this, its just an alias for SetTalkable
-            .def("set_interactable", (void(Entity::*)(const bool)) &Entity::SetTalkable)
-
-            .def( "set_talkable", ( void( Entity::* )( const bool ) ) &Entity::SetTalkable )
-            .def( "is_talkable", ( bool( Entity::* )() ) &Entity::IsTalkable )
-            .def( "set_visible", ( void( Entity::* )( const bool ) ) &Entity::SetVisible )
-            .def( "is_visible", ( bool( Entity::* )() ) &Entity::IsVisible )
-            .def( "set_move_auto_speed", ( void( Entity::* )( const float ) ) &Entity::SetMoveAutoSpeed )
-            .def( "get_move_auto_speed", ( float( Entity::* )() ) &Entity::GetMoveAutoSpeed )
-            .def( "get_move_triangle_id", ( int( Entity::* )() ) &Entity::GetMoveTriangleId )
-            .def( "move_auto_rotation", ( void( Entity::* )( const bool ) ) &Entity::SetMoveAutoRotation )
-            .def( "move_auto_animation", ( void( Entity::* )( const bool ) ) &Entity::SetMoveAutoAnimation )
-            .def( "move_to_position", ( void( Entity::* )( const float, const float ) ) &Entity::ScriptMoveToPosition )
-            .def( "move_to_entity", ( void( Entity::* )( Entity* ) ) &Entity::ScriptMoveToEntity )
-            .def( "move_sync", ( int( Entity::* )() ) &Entity::ScriptMoveSync, luabind::yield )
-            .def( "linear_to_position", ( void( Entity::* )( const float, const float, const float, const LinearMovement, const char* ) ) &Entity::ScriptLinearToPosition )
-            .def( "linear_sync", ( int( Entity::* )() ) &Entity::ScriptLinearSync, luabind::yield )
-            .def( "jump_to_position", ( void( Entity::* )( const float, const float, const float, const float ) )&Entity::ScriptJumpToPosition)
-            .def( "jump_sync", ( int( Entity::* )() ) &Entity::ScriptJumpSync, luabind::yield )
-            .def( "offset_to_position", ( void( Entity::* )( const float, const float, const float, const ActionType, const float ) ) &Entity::ScriptOffsetToPosition )
-            .def( "offset_sync", ( int( Entity::* )() ) &Entity::ScriptOffsetSync, luabind::yield )
-            .def( "turn_to_entity", ( void( Entity::* )( Entity*, const TurnDirection, const float ) )&Entity::ScriptTurnToEntity )
-            .def( "turn_to_direction", ( void( Entity::* )( const float, const TurnDirection, const ActionType, const float ) )&Entity::ScriptTurnToDirection )
-            .def( "turn_sync", ( int( Entity::* )() ) &Entity::ScriptTurnSync, luabind::yield )
-            .def( "set_animation_speed", ( void( Entity::* )( const float ) ) &Entity::ScriptSetAnimationSpeed )
-            .def( "play_animation", ( void( Entity::* )( const char* ) ) &Entity::ScriptPlayAnimation )
-            .def( "play_animation_stop", ( void( Entity::* )( const char* ) ) &Entity::ScriptPlayAnimationStop )
-            .def( "play_animation", ( void( Entity::* )( const char*, const float, const float ) ) &Entity::ScriptPlayAnimation )
-            .def( "play_animation_stop", ( void( Entity::* )( const char*, const float, const float ) ) &Entity::ScriptPlayAnimationStop )
-            .def( "set_default_animation", ( void( Entity::* )( const char* ) ) &Entity::ScriptSetDefaultAnimation )
-            .def( "animation_sync", ( int( Entity::* )()) &Entity::ScriptAnimationSync, luabind::yield )
-
-            .enum_( "constants" )
-            [
-                luabind::value( "NONE", AT_NONE ),
-                luabind::value( "LINEAR", AT_LINEAR ),
-                luabind::value( "SMOOTH", AT_SMOOTH ),
-
-                luabind::value( "CLOCKWISE", TD_CLOCKWISE ),
-                luabind::value( "ANTICLOCKWISE", TD_ANTICLOCKWISE ),
-                luabind::value( "CLOSEST", TD_CLOSEST ),
-
-                luabind::value( "UP_TO_DOWN", LM_UP_TO_DOWN ),
-                luabind::value( "DOWN_TO_UP", LM_DOWN_TO_UP ),
-                luabind::value( "LEFT_TO_RIGHT", LM_LEFT_TO_RIGHT ),
-                luabind::value( "RIGHT_TO_LEFT", LM_RIGHT_TO_LEFT )
-            ]
-    ];
-
-    // game access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< EntityPoint >( "EntityPoint" )
-            .def( "get_position", ( void( EntityPoint::* )() ) &EntityPoint::ScriptGetPosition ) // return 3 values internaly
-            .def( "get_rotation", ( float( EntityPoint::* )() ) &EntityPoint::ScriptGetRotation )
-    ];
-
-    // game access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< EntityManager >( "EntityManager" )
-            .def( "set_paused", ( void( EntityManager::* )( const bool ) ) &EntityManager::ScriptSetPaused )
-            .def( "add_entity", ( void( EntityManager::* )( const char*, const char*, const float, const float, const float, const float ) ) &EntityManager::ScriptAddEntity )
-            .def( "add_entity_script", ( void( EntityManager::* )( const char* ) ) &EntityManager::ScriptAddEntityScript )
-            .def( "get_entity", ( Entity*( EntityManager::* )( const char* ) ) &EntityManager::ScriptGetEntity )
-            .def( "get_entity_point", ( EntityPoint*( EntityManager::* )( const char* ) ) &EntityManager::ScriptGetEntityPoint )
-            .def( "set_player_entity", ( void( EntityManager::* )( const char* ) ) &EntityManager::ScriptSetPlayerEntity )
-            .def( "unset_player_entity", ( void( EntityManager::* )() ) &EntityManager::ScriptUnsetPlayerEntity )
-            .def( "player_lock", ( void( EntityManager::* )( const bool ) ) &EntityManager::ScriptPlayerLock )
-    ];
-
-    // 2d background access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< Background2D >( "Background2D" )
-            .def( "autoscroll_to_entity", ( void( Background2D::* )( Entity* ) ) &Background2D::ScriptAutoScrollToEntity )
-            .def( "scroll_to_position", ( void( Background2D::* )( const float, const float, const Background2D::ScrollType, const float ) ) &Background2D::ScriptScrollToPosition )
-            .def( "scroll_sync", ( int( Background2D::* )() ) &Background2D::ScriptScrollSync, luabind::yield )
-            .def( "play_animation_looped", ( void( Background2D::* )( const char* ) ) &Background2D::ScriptPlayAnimationLooped )
-            .def( "play_animation_once", ( void( Background2D::* )( const char* ) ) &Background2D::ScriptPlayAnimationOnce )
-            .def( "animation_sync", ( int( Background2D::* )( const char* ) ) &Background2D::ScriptAnimationSync, luabind::yield )
-
-            .enum_( "constants" )
-            [
-                luabind::value( "NONE", AT_NONE ),
-                luabind::value( "LINEAR", AT_LINEAR ),
-                luabind::value( "SMOOTH", AT_SMOOTH )
-            ]
-    ];
-
-    // walkmesh access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< Walkmesh >( "Walkmesh" )
-            .def( "lock_walkmesh", ( void( Walkmesh ::* )( unsigned int, bool ) ) &Walkmesh ::LockWalkmesh)
-            .def( "is_locked", ( bool( Walkmesh ::* )( unsigned int ) ) &Walkmesh ::IsLocked)
-    ];
-
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< DialogsManager >( "Dialog" )
-            .def( "dialog_open", ( void( DialogsManager::* )( const char*, int, int, int, int ) ) &DialogsManager::OpenDialog )
-            .def( "dialog_set_text", ( void( DialogsManager::* )( const char*, const char* ) ) &DialogsManager::SetText )
-            .def( "dialog_wait_for_close", ( int( DialogsManager::* )( const char* ) ) &DialogsManager::Sync, luabind::yield )
-            .def( "dialog_close", (void(DialogsManager::*)(const char*)) &DialogsManager::Hide)
-            .def( "set_variable", ( void( DialogsManager::* )( const char*, const char*, const char* ) ) &DialogsManager::SetVariable )           
-            .def( "set_clickable", ( void( DialogsManager::* )( const char*, const bool ) ) &DialogsManager::SetClickable )
-            .def( "set_cursor", ( void( DialogsManager::* )( const char*, const int, const int ) ) &DialogsManager::SetCursor )
-            .def( "get_cursor", ( int( DialogsManager::* )( const char* ) ) &DialogsManager::GetCursor )
-
-            .enum_("constants")
-            [
-                luabind::value("SOLID", MSL_SOLID),
-                luabind::value("TRANSPARENT", MSL_TRANSPARENT),
-                luabind::value("NONE", MSL_NONE)
-            ]
-    ];
-    // ui widget access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< UiWidget >( "UiWidget" )
-            .def( "set_visible", ( void( UiWidget::* )( const bool ) ) &UiWidget::SetVisible )
-            .def( "is_visible", ( bool( UiWidget::* )() ) &UiWidget::IsVisible )
-            .def( "play_animation", ( void( UiWidget::* )( const char* ) ) &UiWidget::ScriptPlayAnimation )
-            .def( "play_animation_stop", ( void( UiWidget::* )( const char* ) ) &UiWidget::ScriptPlayAnimationStop )
-            .def( "play_animation", ( void( UiWidget::* )( const char*, const float, const float ) ) &UiWidget::ScriptPlayAnimation )
-            .def( "play_animation_stop", ( void( UiWidget::* )( const char*, const float, const float ) ) &UiWidget::ScriptPlayAnimationStop )
-            .def( "set_default_animation", ( void( UiWidget::* )( const char* ) ) &UiWidget::ScriptSetDefaultAnimation )
-            .def( "animation_sync", ( int( UiWidget::* )() ) &UiWidget::ScriptAnimationSync, luabind::yield )
-            .def( "set_colour", ( void( UiWidget::* )( const float, const float, const float ) ) &UiWidget::SetColour )
-            .def( "set_alpha", ( void( UiWidget::* )( const float ) ) &UiWidget::SetAlpha )
-            .def( "set_x", ( void( UiWidget::* )( const float, const float ) ) &UiWidget::SetX )
-            .def( "set_y", ( void( UiWidget::* )( const float, const float ) ) &UiWidget::SetY )
-            .def( "set_z", ( void( UiWidget::* )( const float ) ) &UiWidget::SetZ )
-            .def( "set_width", ( void( UiWidget::* )( const float, const float ) ) &UiWidget::SetWidth )
-            .def( "set_height", ( void( UiWidget::* )( const float, const float ) ) &UiWidget::SetHeight )
-    ];
-
-    // ui access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< UiManager >( "UiManager" )
-            .def( "get_widget", ( UiWidget*( UiManager::* )( const char* ) ) &UiManager::ScriptGetWidget )
-    ];
-
-    // timer access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< Timer >( "Timer" )
-            .def( "get_game_time_total", ( float( Timer::* )() ) &Timer::GetGameTimeTotal )
-            .def( "set_timer", ( float( Timer::* )( const float ) ) &Timer::SetGameTimer )
-            .def( "get_timer", ( int( Timer::* )() ) &Timer::GetGameTimer )
-    ];
-
-    // script access
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< ScriptManager >( "Script" )
-            .def( "wait", ( int( ScriptManager::* )( const float ) ) &ScriptManager::ScriptWait, luabind::yield )
-            .def( "request", ( void( ScriptManager::* )( const ScriptManager::Type, const char*, const char*, const int ) ) &ScriptManager::ScriptRequest )
-            .def( "request_start_sync", ( int( ScriptManager::* )( const ScriptManager::Type, const char*, const char*, const int ) ) &ScriptManager::ScriptRequestStartSync, luabind::yield )
-            .def( "request_end_sync", ( int( ScriptManager::* )( const ScriptManager::Type, const char*, const char*, const int ) ) &ScriptManager::ScriptRequestEndSync, luabind::yield )
-            .enum_( "constants" )
-            [
-                luabind::value( "SYSTEM", ScriptManager::SYSTEM ),
-                luabind::value( "ENTITY", ScriptManager::ENTITY ),
-                luabind::value( "UI", ScriptManager::UI )
-            ]
-    ];
-
-    luabind::module( m_LuaState )
-    [
-        luabind::class_< QGears::WorldMapModule >( "world_map_module" )
-            .def( "init", ( void( QGears::WorldMapModule::* )() ) &QGears::WorldMapModule::Init )
-    ];
-
-    luabind::globals( m_LuaState )[ "entity_manager" ] = boost::ref( *( EntityManager::getSingletonPtr() ) );
-    luabind::globals( m_LuaState )[ "background2d" ] = boost::ref( *( EntityManager::getSingletonPtr()->GetBackground2D() ) );
-    luabind::globals( m_LuaState )[ "walkmesh" ] = boost::ref( *( EntityManager::getSingletonPtr()->GetWalkmesh() ) );
-    luabind::globals( m_LuaState )[ "dialog" ] = boost::ref( *( DialogsManager::getSingletonPtr() ) );
-    luabind::globals( m_LuaState )[ "ui_manager" ] = boost::ref( *( UiManager::getSingletonPtr() ) );
-    luabind::globals( m_LuaState )[ "world_map_module" ] = boost::ref( *( QGears::WorldMapModule::getSingletonPtr() ) );
-    luabind::globals( m_LuaState )[ "timer" ] = boost::ref( *( Timer::getSingletonPtr() ) );
-    luabind::globals( m_LuaState )[ "script" ] = boost::ref( *this );
-
-
-
-}

+ 0 - 39
QGearsMain/include/core/ScriptManagerCommands.h

@@ -1,39 +0,0 @@
-#include "ConfigCmdManager.h"
-#include "Console.h"
-
-
-
-void
-CmdScriptRunString( const Ogre::StringVector& params )
-{
-    if( params.size() < 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /script_run_string <string>" );
-        return;
-    }
-
-    ScriptManager::getSingleton().RunString( params[ 1 ] );
-}
-
-
-
-void
-CmdScriptRunFile( const Ogre::StringVector& params )
-{
-    if( params.size() < 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /script_run_file <file name>" );
-        return;
-    }
-
-    ScriptManager::getSingleton().RunFile( params[ 1 ] );
-}
-
-
-
-void
-ScriptManager::InitCmd()
-{
-    ConfigCmdManager::getSingleton().AddCommand( "script_run_string", "Run script string", "", CmdScriptRunString, NULL );
-    ConfigCmdManager::getSingleton().AddCommand( "script_run_file", "Run script file", "", CmdScriptRunFile, NULL );
-}

+ 0 - 49
QGearsMain/include/core/TextManager.h

@@ -1,49 +0,0 @@
-#ifndef TEXT_MANAGER_H
-#define TEXT_MANAGER_H
-
-#include <OgreString.h>
-#include <OgreSingleton.h>
-
-#include "tinyxml/tinyxml.h"
-
-
-
-class TextManager : public Ogre::Singleton< TextManager >
-{
-public:
-    TextManager();
-    virtual ~TextManager();
-
-    void InitCmd();
-
-    void SetLanguage( const Ogre::String& language );
-    const Ogre::String& GetLanguage();
-    void AddText( const Ogre::String& name, TiXmlNode* node );
-    void AddDialog( const Ogre::String& name, TiXmlNode* node, const float width, const float height );
-    TiXmlNode* GetText( const Ogre::String& name ) const;
-    TiXmlNode* GetDialog( const Ogre::String& name, float &width, float& height ) const;
-    void UnloadTexts();
-
-private:
-    Ogre::String m_Language;
-
-    struct Text
-    {
-        Ogre::String name;
-        TiXmlNode* node;
-    };
-    std::vector< Text > m_Texts;
-
-    struct Dialog
-    {
-        Ogre::String name;
-        TiXmlNode* node;
-        float width;
-        float height;
-    };
-     std::vector< Dialog > m_Dialogs;
-};
-
-
-
-#endif // TEXT_MANAGER_H

+ 0 - 36
QGearsMain/include/core/TextManagerCommands.h

@@ -1,36 +0,0 @@
-#include "ConfigCmdManager.h"
-#include "Console.h"
-#include "Logger.h"
-#include "XmlTextsFile.h"
-
-
-
-void
-CmdSetLanguage( const Ogre::StringVector& params )
-{
-    if( params.size() < 2 )
-    {
-        Console::getSingleton().AddTextToOutput( "Usage: /set_language <language>" );
-        return;
-    }
-
-    TextManager::getSingleton().SetLanguage( params[ 1 ] );
-    LOG_TRIVIAL( "Set game language to \"" + params[ 1 ] + "\"." );
-}
-
-
-
-void
-CmdSetLanguageCompletition( Ogre::StringVector& complete_params )
-{
-    XmlTextsFile texts( "./data/texts.xml" );
-    texts.GetAvailableLanguages( complete_params );
-}
-
-
-
-void
-TextManager::InitCmd()
-{
-    ConfigCmdManager::getSingleton().AddCommand( "set_language", "Change language of texts and dialogs", "", CmdSetLanguage, CmdSetLanguageCompletition );
-}

+ 0 - 34
QGearsMain/include/core/Timer.h

@@ -1,34 +0,0 @@
-#ifndef TIMER_H
-#define TIMER_H
-
-#include <OgreSingleton.h>
-
-
-
-class Timer : public Ogre::Singleton< Timer >
-{
-public:
-    Timer();
-
-    float GetSystemTimeTotal();
-    float GetSystemTimeDelta();
-    float GetGameTimeTotal();
-    float GetGameTimeDelta();
-
-    void AddTime( const float time );
-
-    void SetGameTimer( const float timer );
-    int GetGameTimer() const;
-
-private:
-    float m_SystemTimeTotal;
-    float m_SystemTimeDelta;
-    float m_GameTimeTotal;
-    float m_GameTimeDelta;
-
-    float m_GameTimer;
-};
-
-
-
-#endif // TIMER_H

+ 0 - 87
QGearsMain/include/core/UiAnimation.h

@@ -1,87 +0,0 @@
-#ifndef UI_ANIMATION_H
-#define UI_ANIMATION_H
-
-#include <OgreString.h>
-#include <OgreVector2.h>
-#include <vector>
-
-
-
-class UiWidget;
-
-
-
-struct UiKeyFrameFloat
-{
-    float time;
-    float value;
-};
-
-
-
-struct UiKeyFrameVector2
-{
-    float time;
-    Ogre::Vector2 value;
-};
-
-
-
-class UiAnimation
-{
-public:
-    UiAnimation( const Ogre::String& name, UiWidget* widget );
-    virtual ~UiAnimation();
-
-    enum State
-    {
-        DEFAULT,
-        ONCE
-    };
-
-    void AddTime( const float time );
-
-    const Ogre::String& GetName() const;
-
-    void SetTime( const float time );
-    float GetTime() const;
-    void SetLength( const float time );
-    float GetLength() const;
-    void AddScaleKeyFrame( const UiKeyFrameVector2& key_frame );
-    void AddXKeyFrame( const UiKeyFrameVector2& key_frame );
-    void AddYKeyFrame( const UiKeyFrameVector2& key_frame );
-    void AddWidthKeyFrame( const UiKeyFrameVector2& key_frame );
-    void AddHeightKeyFrame( const UiKeyFrameVector2& key_frame );
-    void AddRotationKeyFrame( const UiKeyFrameFloat& key_frame );
-    void AddAlphaKeyFrame( const UiKeyFrameFloat& key_frame );
-    void AddScissorKeyFrame( const UiKeyFrameVector2& x1, const UiKeyFrameVector2& y1, const UiKeyFrameVector2& x2, const UiKeyFrameVector2& y2 );
-
-private:
-    UiAnimation();
-
-    float KeyFrameGetValue( std::vector< UiKeyFrameFloat >& data );
-    Ogre::Vector2 KeyFrameGetValue( std::vector< UiKeyFrameVector2 >& data );
-
-    Ogre::String m_Name;
-    UiWidget*    m_Widget;
-
-    float        m_Time;
-    float        m_Length;
-
-    std::vector< UiKeyFrameVector2 > m_Scale;
-    std::vector< UiKeyFrameVector2 > m_X;
-    std::vector< UiKeyFrameVector2 > m_Y;
-    std::vector< UiKeyFrameVector2 > m_Width;
-    std::vector< UiKeyFrameVector2 > m_Height;
-    std::vector< UiKeyFrameFloat >   m_Rotation;
-    std::vector< UiKeyFrameFloat >   m_Alpha;
-
-    std::vector< UiKeyFrameVector2 > m_ScissorXTop;
-    std::vector< UiKeyFrameVector2 > m_ScissorYLeft;
-    std::vector< UiKeyFrameVector2 > m_ScissorXBottom;
-    std::vector< UiKeyFrameVector2 > m_ScissorYRight;
-};
-
-
-
-#endif // UI_ANIMATION_H

+ 0 - 54
QGearsMain/include/core/UiFont.h

@@ -1,54 +0,0 @@
-#ifndef UI_FONT_H
-#define UI_FONT_H
-
-#include <OgreString.h>
-
-
-
-struct UiCharData
-{
-    int char_code;
-    int x;
-    int y;
-    int width;
-    int height;
-    int pre;
-    int post;
-};
-
-
-
-class UiFont
-{
-public:
-    UiFont( const Ogre::String& name, const Ogre::String& language );
-    virtual ~UiFont();
-
-    const Ogre::String& GetName() const;
-    const Ogre::String& GetLanguage() const;
-
-    void SetImage( const Ogre::String& image, const int width, const int height );
-    const Ogre::String& GetImageName() const;
-    int GetImageWidth() const;
-    int GetImageHeight() const;
-
-    void SetHeight( const int height );
-    int GetHeight() const;
-
-    void AddCharData( const UiCharData& data );
-    UiCharData GetCharData( const int char_code ) const;
-
-private:
-    Ogre::String              m_Name;
-    Ogre::String              m_Language;
-
-    Ogre::String              m_ImageName;
-    int                       m_ImageWidth;
-    int                       m_ImageHeight;
-    int                       m_Height;
-    std::vector< UiCharData > m_CharData;
-};
-
-
-
-#endif // UI_FONT_H

+ 0 - 50
QGearsMain/include/core/UiManager.h

@@ -1,50 +0,0 @@
-#ifndef UI_MANAGER_H
-#define UI_MANAGER_H
-
-#include <OgreRenderQueueListener.h>
-#include <OgreSingleton.h>
-#include <OgreUTFString.h>
-#include <tinyxml/tinyxml.h>
-
-#include "UiFont.h"
-#include "UiWidget.h"
-
-
-
-class UiManager : public Ogre::RenderQueueListener, public Ogre::Singleton< UiManager >
-{
-public:
-    UiManager();
-    virtual ~UiManager();
-
-    void Initialise();
-    void Update();
-    void OnResize();
-
-
-    void AddFont( UiFont* font );
-    UiFont* GetFont( const Ogre::String& name );
-
-    void AddPrototype( const Ogre::String& name, TiXmlNode* prototype );
-    TiXmlNode* GetPrototype( const Ogre::String& name ) const;
-
-    void AddWidget( UiWidget* widget );
-    UiWidget* GetWidget( const Ogre::String& name );
-    UiWidget* ScriptGetWidget( const char* name );
-
-    void renderQueueStarted( Ogre::uint8 queueGroupId, const Ogre::String& invocation, bool& skipThisInvocation );
-
-private:
-    std::vector< UiFont* > m_Fonts;
-    struct UiPrototype
-    {
-        Ogre::String name;
-        TiXmlNode* node;
-    };
-    std::vector< UiPrototype > m_Prototypes;
-    std::vector< UiWidget* > m_Widgets;
-};
-
-
-
-#endif // UI_MANAGER_H

+ 0 - 45
QGearsMain/include/core/UiSprite.h

@@ -1,45 +0,0 @@
-#ifndef UI_SPRITE_H
-#define UI_SPRITE_H
-
-#include <OgreHardwareVertexBuffer.h>
-#include <OgreRenderQueueListener.h>
-#include <OgreRoot.h>
-
-#include "UiWidget.h"
-
-
-
-class UiSprite : public UiWidget
-{
-public:
-    UiSprite( const Ogre::String& name );
-    UiSprite( const Ogre::String& name, const Ogre::String& path_name, UiWidget* parent );
-    virtual ~UiSprite();
-
-    void Initialise();
-    virtual void Update();
-    virtual void Render();
-    virtual void UpdateTransformation();
-
-    void SetImage( const Ogre::String& image );
-    void SetVertexShader( const Ogre::String& shader );
-    void SetFragmentShader( const Ogre::String& shader );
-    void UpdateGeometry();
-
-private:
-    UiSprite();
-    void CreateVertexBuffer();
-    void DestroyVertexBuffer();
-
-private:
-    Ogre::MaterialPtr                   m_Material;
-    Ogre::SceneManager*                 m_SceneManager;
-    Ogre::RenderSystem*                 m_RenderSystem;
-
-    Ogre::RenderOperation               m_RenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_VertexBuffer;
-};
-
-
-
-#endif // UI_SPRITE_H

+ 0 - 152
QGearsMain/include/core/UiTextArea.h

@@ -1,152 +0,0 @@
-#ifndef UI_TEXT_AREA_H
-#define UI_TEXT_AREA_H
-
-#include <OgreHardwareVertexBuffer.h>
-#include <OgreRenderQueueListener.h>
-#include <OgreRoot.h>
-#include <OgreUTFString.h>
-#include <tinyxml/tinyxml.h>
-
-#include "UiFont.h"
-#include "UiWidget.h"
-
-class UiSprite;
-
-enum TextState
-{
-    TS_SHOW_TEXT,
-    TS_SCROLL_TEXT,
-    TS_PAUSE_OK,
-    TS_PAUSE_TIME,
-    TS_DONE,
-    TS_OVERFLOW,
-    TS_NEXT_PAGE,
-};
-
-
-
-struct TextChar
-{
-    TextChar():
-        char_code( 0 ),
-        colour( Ogre::ColourValue::White ),
-        skip( false ),
-        variable( "" ),
-        variable_len( 0 ),
-        pause_ok( false ),
-        pause_time( 0.0f ),
-        next_page( false ),
-        sprite( NULL ),
-        sprite_y( 0 )
-    {
-    }
-
-    int char_code;
-    Ogre::ColourValue colour;
-    bool skip;
-    Ogre::String variable;
-    unsigned int variable_len;
-    bool pause_ok;
-    float pause_time;
-    bool next_page;
-    UiSprite* sprite;
-    float sprite_y;
-};
-
-
-
-struct TextVariable
-{
-    Ogre::String name;
-    Ogre::UTFString value;
-};
-
-
-
-class UiTextArea : public UiWidget
-{
-public:
-    UiTextArea( const Ogre::String& name );
-    UiTextArea( const Ogre::String& name, const Ogre::String& path_name, UiWidget* parent );
-    virtual ~UiTextArea();
-
-    void Initialise();
-    virtual void Update();
-    virtual void Render();
-    virtual void UpdateTransformation();
-
-    void UpdateGeometry();
-
-    void InputPressed();
-    void InputRepeated();
-
-    enum TextAlign
-    {
-        LEFT,
-        RIGHT,
-        CENTER
-    };
-    void SetTextAlign( const TextAlign align );
-    void SetPadding( const float top, const float right, const float bottom, const float left );
-    void SetText( const Ogre::UTFString& text );
-    void SetText( TiXmlNode* text );
-    void TextClear();
-    void RemoveSpritesFromText( const unsigned int end );
-    void SetFont( const Ogre::String& font );
-    const UiFont* GetFont() const;
-    void SetTextPrintSpeed( const float speed );
-    void SetTextScrollTime( const float time );
-    void SetVariable( const Ogre::String& name, const Ogre::UTFString& value );
-    Ogre::UTFString GetVariable( const Ogre::String& name ) const;
-    TextState GetTextState() const;
-    float GetTextLimit() const;
-    unsigned int GetTextSize() const;
-    float GetPauseTime() const;
-
-private:
-    float GetTextWidth() const;
-    void PrepareTextFromNode( TiXmlNode* node, const Ogre::ColourValue& colour );
-    void PrepareTextFromText( const Ogre::UTFString& text, const Ogre::ColourValue& colour );
-
-    UiTextArea();
-    void CreateVertexBuffer();
-    void DestroyVertexBuffer();
-
-private:
-    Ogre::MaterialPtr                   m_Material;
-    Ogre::SceneManager*                 m_SceneManager;
-    Ogre::RenderSystem*                 m_RenderSystem;
-
-    unsigned int                        m_MaxLetters;
-    Ogre::RenderOperation               m_RenderOp;
-    Ogre::HardwareVertexBufferSharedPtr m_VertexBuffer;
-
-    UiFont*                             m_Font;
-    TextAlign                           m_TextAlign;
-
-    std::vector< TextChar >             m_Text;
-    float                               m_TextLimit;
-    float                               m_TextPrintSpeed;
-    float                               m_TextPrintSpeedMod;
-    TextState                           m_TextState;
-    std::vector< TextVariable >         m_TextVariable;
-
-    float                               m_TextScrollTime;
-    float                               m_TextYOffset;
-    float                               m_TextYOffsetTarget;
-    float                               m_PauseTime;
-    unsigned int                        m_NextPageStart;
-
-    bool                                m_NextPressed;
-    bool                                m_NextRepeated;
-
-    float                               m_PaddingTop;
-    float                               m_PaddingRight;
-    float                               m_PaddingBottom;
-    float                               m_PaddingLeft;
-
-    bool                                m_Timer;
-    int                                 m_TimerTime;
-};
-
-#endif // UI_TEXT_AREA_H

+ 0 - 167
QGearsMain/include/core/UiWidget.h

@@ -1,167 +0,0 @@
-#ifndef UI_WIDGET_H
-#define UI_WIDGET_H
-
-#include <OgreColourValue.h>
-#include <OgreString.h>
-#include <OgreVector2.h>
-#include <vector>
-
-#include "ScriptManager.h"
-#include "UiAnimation.h"
-
-
-
-class UiWidget
-{
-public:
-    UiWidget( const Ogre::String& name );
-    UiWidget( const Ogre::String& name, const Ogre::String& path_name, UiWidget* parent );
-    virtual ~UiWidget();
-
-    void Initialise();
-    virtual void Update();
-    void OnResize();
-    virtual void Render();
-
-    void SetVisible( const bool visible );
-    bool IsVisible() const;
-
-    const Ogre::String& GetName() const;
-
-    void AddChild( UiWidget* widget );
-    UiWidget* GetChild( const Ogre::String& name );
-    UiWidget* GetChild( const unsigned int id );
-    unsigned int GetNumberOfChildren();
-    void RemoveAllChildren();
-
-    // animation related
-    void AddAnimation( UiAnimation* animation );
-    const Ogre::String& GetCurrentAnimationName() const;
-    UiAnimation::State GetAnimationState() const;
-    void PlayAnimation( const Ogre::String& animation, UiAnimation::State state, const float start, const float end );
-    void ScriptPlayAnimation( const char* name );
-    void ScriptPlayAnimationStop( const char* name );
-    void ScriptPlayAnimation( const char* name, const float start, const float end );
-    void ScriptPlayAnimationStop( const char* name, const float start, const float end );
-    void ScriptSetDefaultAnimation( const char* animation );
-    int ScriptAnimationSync();
-
-    void SetUpdateTransformation();
-    virtual void UpdateTransformation();
-
-    enum Align
-    {
-        LEFT,
-        RIGHT,
-        CENTER
-    };
-    enum VerticalAlign
-    {
-        TOP,
-        BOTTOM,
-        MIDDLE
-    };
-    void SetAlign( const UiWidget::Align align );
-    void SetVerticalAlign( const UiWidget::VerticalAlign valign );
-
-    float GetFinalZ() const;
-    Ogre::Vector2 GetFinalOrigin() const;
-    Ogre::Vector2 GetFinalTranslate() const;
-    Ogre::Vector2 GetFinalSize() const;
-    Ogre::Vector2 GetFinalScale() const;
-    Ogre::Vector4 GetFinalScissor( bool& scissor ) const;
-    float GetFinalRotation() const;
-
-    void SetOriginX( const float percent, const float x );
-    void SetOriginY( const float percent, const float y );
-    void SetX( const float percent, const float x );
-    void GetX( float& percent, float& x );
-    void SetY( const float percent, const float y );
-    void GetY( float& percent, float& y );
-    void SetZ( const float z );
-    void SetWidth( const float percent, const float width );
-    void GetWidth( float& percent, float& width );
-    void SetHeight( const float percent, const float height );
-    void GetHeight( float& percent, float& height );
-    void SetScale( const Ogre::Vector2& scale );
-    void SetRotation( const float degree );
-    void SetScissorArea( const float percent_x1, const float x1, const float percent_y1, const float y1, const float percent_x2, const float x2, const float percent_y2, const float y2 );
-    void SetGlobalScissor( const bool global );
-    void SetColour( const float r, const float g, const float b );
-    void SetColours( const float r1, const float g1, const float b1, const float r2, const float g2, const float b2, const float r3, const float g3, const float b3, const float r4, const float g4, const float b4 );
-    void SetAlpha( const float a );
-
-private:
-    UiWidget();
-
-protected:
-    Ogre::String             m_Name;
-    Ogre::String             m_PathName;
-
-    UiWidget*                m_Parent;
-    std::vector< UiWidget* > m_Children;
-
-    float                    m_ScreenWidth;
-    float                    m_ScreenHeight;
-
-    bool                     m_Visible;
-    Ogre::ColourValue        m_Colour1;
-    Ogre::ColourValue        m_Colour2;
-    Ogre::ColourValue        m_Colour3;
-    Ogre::ColourValue        m_Colour4;
-
-    Align                    m_Align;
-    VerticalAlign            m_VerticalAlign;
-
-    bool                     m_UpdateTransformation;
-
-    Ogre::Vector2            m_FinalOrigin;
-    Ogre::Vector2            m_FinalTranslate;
-    float                    m_FinalZ;
-    Ogre::Vector2            m_FinalSize;
-    Ogre::Vector2            m_FinalScale;
-    float                    m_FinalRotation;
-
-    float                    m_OriginXPercent;
-    float                    m_OriginX;
-    float                    m_OriginYPercent;
-    float                    m_OriginY;
-    float                    m_XPercent;
-    float                    m_X;
-    float                    m_YPercent;
-    float                    m_Y;
-    float                    m_Z;
-    float                    m_WidthPercent;
-    float                    m_Width;
-    float                    m_HeightPercent;
-    float                    m_Height;
-    Ogre::Vector2            m_Scale;
-    float                    m_Rotation;
-
-    bool                     m_Scissor;
-    bool                     m_LocalScissor;
-    bool                     m_GlobalScissor;
-    int                      m_ScissorTop;
-    float                    m_ScissorXPercentTop;
-    float                    m_ScissorXTop;
-    int                      m_ScissorBottom;
-    float                    m_ScissorXPercentBottom;
-    float                    m_ScissorXBottom;
-    int                      m_ScissorLeft;
-    float                    m_ScissorYPercentLeft;
-    float                    m_ScissorYLeft;
-    int                      m_ScissorRight;
-    float                    m_ScissorYPercentRight;
-    float                    m_ScissorYRight;
-
-    UiAnimation*                m_AnimationCurrent;
-    std::vector< ScriptId >     m_AnimationSync;
-    UiAnimation::State          m_AnimationState;
-    Ogre::String                m_AnimationDefault;
-    float                       m_AnimationEndTime;
-    std::vector< UiAnimation* > m_Animations;
-};
-
-
-
-#endif // UI_WIDGET_H

+ 0 - 53
QGearsMain/include/core/Utilites.h

@@ -1,53 +0,0 @@
-#ifndef UTILITES_H
-#define UTILITES_H
-
-#include <OgreColourValue.h>
-#include <OgreMatrix4.h>
-#include <OgreString.h>
-#include <OgreStringVector.h>
-#include <OgreVector2.h>
-#include <OgreVector3.h>
-#include <OgreVector4.h>
-#include <OgreUTFString.h>
-#include <OIS.h>
-
-#include <tinyxml/tinyxml.h>
-
-bool                      GetBool( TiXmlNode* node, const Ogre::String& tag, bool def = false );
-int                       GetInt( TiXmlNode* node, const Ogre::String& tag, int def = 0 );
-float                     GetFloat( TiXmlNode* node, const Ogre::String& tag, float def = 0.0f );
-const Ogre::String        GetString( TiXmlNode* node, const Ogre::String& tag, const Ogre::String& def = "" );
-const Ogre::UTFString     GetUTFString( TiXmlNode* node, const Ogre::String& tag, const Ogre::UTFString& def = "" );
-const Ogre::Vector2       GetVector2( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector2& def = Ogre::Vector2::ZERO );
-const Ogre::Vector3       GetVector3( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector3& def = Ogre::Vector3::ZERO );
-const Ogre::Vector4       GetVector4( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector4& def = Ogre::Vector4::ZERO );
-const Ogre::Matrix4       GetMatrix4( TiXmlNode* node, const Ogre::String& tag, const Ogre::Matrix4& def = Ogre::Matrix4::IDENTITY );
-const Ogre::Quaternion    GetQuaternion( TiXmlNode* node, const Ogre::String& tag, const Ogre::Quaternion& def = Ogre::Quaternion::IDENTITY );
-const Ogre::ColourValue   GetColourValue( TiXmlNode* node, const Ogre::String& tag, const Ogre::ColourValue& def = Ogre::ColourValue::ZERO );
-
-void                      ParsePersent( float& value_percent, float& value, const Ogre::String& string );
-float                     ParseKeyFrameTime( const float length, const Ogre::String& string );
-
-
-
-const Ogre::String
-CreateAutoName( const Ogre::String prefix );
-
-
-
-Ogre::String
-KeyToString( OIS::KeyCode key );
-
-
-
-OIS::KeyCode
-StringToKey( const Ogre::String& str );
-
-
-
-Ogre::StringVector
-StringTokenise( const Ogre::String& str, const Ogre::String& delimiters = "\t\n ", const Ogre::String& delimiters_preserve = "", const Ogre::String& quote = "\"", const Ogre::String& esc = "\\" );
-
-
-
-#endif // UTILITES_H

+ 0 - 60
QGearsMain/include/core/Walkmesh.h

@@ -1,60 +0,0 @@
-#ifndef WALKMESH_H
-#define WALKMESH_H
-
-#include <OgreVector3.h>
-#include <vector>
-
-struct WalkmeshTriangle
-{
-    WalkmeshTriangle():
-        a( 0, 0, 0 ),
-        b( 0, 0, 0 ),
-        c( 0, 0, 0 ),
-        locked( false )
-    {
-        access_side[ 0 ] = -1;
-        access_side[ 1 ] = -1;
-        access_side[ 2 ] = -1;
-    }
-
-    Ogre::Vector3 a;
-    Ogre::Vector3 b;
-    Ogre::Vector3 c;
-
-    int           access_side[ 3 ];
-    bool          locked;
-};
-
-namespace QGears
-{
-    typedef Ogre::SharedPtr<class WalkmeshFile> WalkmeshFilePtr;
-}
-
-class Walkmesh
-{
-public:
-    Walkmesh();
-    virtual ~Walkmesh();
-
-    void UpdateDebug();
-    void Clear();
-
-    void AddTriangle( const WalkmeshTriangle& triangle );
-
-    int GetAccessSide( unsigned int triangle_id, unsigned char side ) const;
-    const Ogre::Vector3& GetA( unsigned int triangle_id ) const;
-    const Ogre::Vector3& GetB( unsigned int triangle_id ) const;
-    const Ogre::Vector3& GetC( unsigned int triangle_id ) const;
-    int GetNumberOfTriangles() const;
-    void LockWalkmesh( unsigned int triangle_id, bool lock );
-    bool IsLocked( unsigned int triangle_id ) const;
-
-    virtual void load( const QGears::WalkmeshFilePtr &walkmesh );
-
-private:
-    std::vector< WalkmeshTriangle > m_Triangles;
-};
-
-
-
-#endif // WALKMESH_H

+ 0 - 19
QGearsMain/include/core/XmlBackground2DFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_BACKGROUND_2D_FILE_H
-#define XML_BACKGROUND_2D_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlBackground2DFile : public XmlFile
-{
-public:
-    XmlBackground2DFile( const Ogre::String& file );
-    virtual ~XmlBackground2DFile();
-
-    void Load();
-};
-
-
-
-#endif // XML_BACKGROUND_2D_FILE_H

+ 0 - 42
QGearsMain/include/core/XmlFile.h

@@ -1,42 +0,0 @@
-#ifndef XML_FILE_H
-#define XML_FILE_H
-
-#include <OgreColourValue.h>
-#include <OgreMatrix4.h>
-#include <OgreString.h>
-#include <OgreVector2.h>
-#include <OgreVector3.h>
-#include <OgreVector4.h>
-#include <OgreUTFString.h>
-
-#include <tinyxml/tinyxml.h>
-
-
-
-class XmlFile
-{
-public:
-    XmlFile( const Ogre::String& file );
-    virtual ~XmlFile();
-
-    bool                      GetBool( TiXmlNode* node, const Ogre::String& tag, bool def = false ) const;
-    int                       GetInt( TiXmlNode* node, const Ogre::String& tag, int def = 0 ) const;
-    float                     GetFloat( TiXmlNode* node, const Ogre::String& tag, float def = 0.0f ) const;
-    const Ogre::String        GetString( TiXmlNode* node, const Ogre::String& tag, const Ogre::String& def = "" ) const;
-    const Ogre::UTFString     GetUTFString( TiXmlNode* node, const Ogre::String& tag, const Ogre::UTFString& def = "" ) const;
-    const Ogre::Vector2       GetVector2( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector2& def = Ogre::Vector2::ZERO ) const;
-    const Ogre::Vector3       GetVector3( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector3& def = Ogre::Vector3::ZERO  ) const;
-    const Ogre::Vector4       GetVector4( TiXmlNode* node, const Ogre::String& tag, const Ogre::Vector4& def = Ogre::Vector4::ZERO  ) const;
-    const Ogre::Matrix4       GetMatrix4( TiXmlNode* node, const Ogre::String& tag, const Ogre::Matrix4& def = Ogre::Matrix4::IDENTITY ) const;
-    const Ogre::Quaternion    GetQuaternion( TiXmlNode* node, const Ogre::String& tag, const Ogre::Quaternion& def = Ogre::Quaternion::IDENTITY ) const;
-    const Ogre::ColourValue   GetColourValue( TiXmlNode* node, const Ogre::String& tag, const Ogre::ColourValue& def = Ogre::ColourValue::ZERO ) const;
-
-protected:
-    bool m_NormalFile;
-
-    TiXmlDocument m_File;
-};
-
-
-
-#endif // XML_FILE_H

+ 0 - 20
QGearsMain/include/core/XmlFontFile.h

@@ -1,20 +0,0 @@
-#ifndef XML_FONT_FILE_H
-#define XML_FONT_FILE_H
-
-#include "UiWidget.h"
-#include "XmlFile.h"
-
-
-
-class XmlFontFile : public XmlFile
-{
-public:
-    explicit XmlFontFile( const Ogre::String& file );
-    virtual ~XmlFontFile();
-
-    void LoadFont();
-};
-
-
-
-#endif // XML_FONT_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlFontsFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_FONTS_FILE_H
-#define XML_FONTS_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlFontsFile : public XmlFile
-{
-public:
-    XmlFontsFile( const Ogre::String& file );
-    virtual ~XmlFontsFile();
-
-    void LoadFonts();
-};
-
-
-
-#endif // XML_FONTS_FILE_H

+ 0 - 20
QGearsMain/include/core/XmlMapFile.h

@@ -1,20 +0,0 @@
-#ifndef XML_MAP_FILE_H
-#define XML_MAP_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlMapFile : public XmlFile
-{
-public:
-    explicit XmlMapFile( const Ogre::String& file );
-    virtual ~XmlMapFile();
-
-    void LoadMap();
-    const Ogre::String GetWalkmeshFileName();
-};
-
-
-
-#endif // XML_MAP_FILE_H

+ 0 - 22
QGearsMain/include/core/XmlMapsFile.h

@@ -1,22 +0,0 @@
-#ifndef XML_MAPS_FILE_H
-#define XML_MAPS_FILE_H
-
-#include <OgreStringVector.h>
-
-#include "XmlFile.h"
-
-
-
-class XmlMapsFile : public XmlFile
-{
-public:
-    XmlMapsFile( const Ogre::String& file );
-    virtual ~XmlMapsFile();
-
-    const Ogre::String GetMapFileNameByName( const Ogre::String& name );
-    void GetMapNames( Ogre::StringVector& complete_params );
-};
-
-
-
-#endif // XML_FIELD_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlMusicsFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_MUSICS_FILE_H
-#define XML_MUSICS_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlMusicsFile : public XmlFile
-{
-public:
-    XmlMusicsFile( const Ogre::String& file );
-    virtual ~XmlMusicsFile();
-
-    void LoadMusics();
-};
-
-
-
-#endif // XML_MUSICS_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlPrototypesFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_PROTOTYPES_FILE_H
-#define XML_PROTOTYPES_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlPrototypesFile : public XmlFile
-{
-public:
-    XmlPrototypesFile( const Ogre::String& file );
-    virtual ~XmlPrototypesFile();
-
-    void LoadPrototypes();
-};
-
-
-
-#endif // XML_PROTOTYPES_FILE_H

+ 0 - 21
QGearsMain/include/core/XmlScreenFile.h

@@ -1,21 +0,0 @@
-#ifndef XML_SCREEN_FILE_H
-#define XML_SCREEN_FILE_H
-
-#include "UiWidget.h"
-#include "XmlFile.h"
-
-
-
-class XmlScreenFile : public XmlFile
-{
-public:
-    explicit XmlScreenFile( const Ogre::String& file );
-    virtual ~XmlScreenFile();
-
-    void LoadScreen();
-    void LoadScreenRecursive( TiXmlNode* node, const Ogre::String& base_name, UiWidget* widget );
-};
-
-
-
-#endif // XML_SCREEN_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlScreensFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_SCREENS_FILE_H
-#define XML_SCREENS_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlScreensFile : public XmlFile
-{
-public:
-    XmlScreensFile( const Ogre::String& file );
-    virtual ~XmlScreensFile();
-
-    void LoadScreens();
-};
-
-
-
-#endif // XML_SCREENS_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlScriptsFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_SCRIPTS_FILE_H
-#define XML_SCRIPTS_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlScriptsFile : public XmlFile
-{
-public:
-    XmlScriptsFile( const Ogre::String& file );
-    virtual ~XmlScriptsFile();
-
-    void LoadScripts();
-};
-
-
-
-#endif // XML_SCRIPTS_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlTextFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_TEXT_FILE_H
-#define XML_TEXT_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlTextFile : public XmlFile
-{
-public:
-    XmlTextFile( const Ogre::String& file );
-    virtual ~XmlTextFile();
-
-    void LoadTexts();
-};
-
-
-
-#endif // XML_TEXT_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlTextsFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_TEXTS_FILE_H
-#define XML_TEXTS_FILE_H
-
-#include "XmlFile.h"
-
-#include <OgreStringVector.h>
-
-
-class XmlTextsFile : public XmlFile
-{
-public:
-    XmlTextsFile( const Ogre::String& file );
-    virtual ~XmlTextsFile();
-
-    void GetAvailableLanguages( Ogre::StringVector& languages );
-    void LoadTexts();
-};
-
-#endif // XML_TEXTS_FILE_H

+ 0 - 19
QGearsMain/include/core/XmlWalkmeshFile.h

@@ -1,19 +0,0 @@
-#ifndef XML_WALKMESH_FILE_H
-#define XML_WALKMESH_FILE_H
-
-#include "XmlFile.h"
-
-
-
-class XmlWalkmeshFile : public XmlFile
-{
-public:
-    XmlWalkmeshFile( const Ogre::String& file );
-    virtual ~XmlWalkmeshFile();
-
-    void Load();
-};
-
-
-
-#endif // XML_WALKMESH_FILE_H

+ 0 - 60
QGearsMain/include/core/particles/Particle.h

@@ -1,60 +0,0 @@
-#ifndef PARTICLE_H
-#define PARTICLE_H
-
-#include <OgrePrerequisites.h>
-#include <OgreVector3.h>
-
-#include "ParticleAdditionalData.h"
-
-
-
-class ParticleEmitter;
-
-
-
-class Particle
-{
-public:
-    enum ParticleType
-    {
-        PT_VISUAL,
-        PT_EMITTER
-    };
-
-    Particle();
-    virtual ~Particle() = 0;
-
-    virtual void InitForEmission() {};
-    virtual void InitForExpiration() {};
-
-    virtual void Update(Ogre::Real time_elapsed);
-
-    virtual void CopyAttributesTo(Particle* particle);
-
-    ParticleType GetParticleType() const {return m_ParticleType;};
-
-    void SetParentEmitter(ParticleEmitter* parent_emitter) {m_ParentEmitter = parent_emitter;};
-    ParticleEmitter* GetParentEmitter() const {return m_ParentEmitter;};
-
-    void SetEnabled(bool enabled) {m_Enabled = enabled;};
-    bool IsEnabled() const {return m_Enabled;};
-
-    void SetEmittable(bool emittable) {m_Emittable = emittable;};
-    bool IsEmittable() const {return m_Emittable;};
-
-    ParticleAdditionalData* additional_data;
-    Ogre::Vector3           position;
-    Ogre::Vector3           direction;
-    float                   time_to_live;
-    float                   total_time_to_live;
-
-protected:
-    ParticleEmitter*    m_ParentEmitter;
-    ParticleType        m_ParticleType;
-    bool                m_Enabled;
-    bool                m_Emittable;
-};
-
-
-
-#endif // PARTICLE_H

+ 0 - 13
QGearsMain/include/core/particles/ParticleAdditionalData.h

@@ -1,13 +0,0 @@
-#ifndef PARTICLE_ADDITIONAL_DATA_H
-#define PARTICLE_ADDITIONAL_DATA_H
-
-
-
-struct ParticleAdditionalData
-{
-    virtual void SetVisible(bool visible) = 0;
-};
-
-
-
-#endif // PARTICLE_ADDITIONAL_DATA_H

+ 0 - 74
QGearsMain/include/core/particles/ParticleEmitter.h

@@ -1,74 +0,0 @@
-#ifndef PARTICLE_EMITTER_H
-#define PARTICLE_EMITTER_H
-
-#include <OgreStringInterface.h>
-
-#include "Particle.h"
-#include "ParticleEmitterDictionary.h"
-
-
-
-class ParticleTechnique;
-
-
-
-class ParticleEmitter : public Ogre::StringInterface, public Particle
-{
-public:
-    ParticleEmitter();
-    virtual ~ParticleEmitter();
-
-    virtual void CopyAttributesTo(ParticleEmitter* emitter);
-
-    virtual void InitForEmission();
-
-    virtual int CalculateRequestedParticles(Ogre::Real time_elapsed);
-    virtual void InitParticleForEmission(Particle* particle);
-
-    void SetParentTechnique(ParticleTechnique* tech) {m_ParentTechnique = tech;};
-    ParticleTechnique* GetParentTechnique() const {return m_ParentTechnique;};
-
-    void SetName(const Ogre::String& name) {m_Name = name;};
-    const Ogre::String& GetName() const {return m_Name;};
-
-    void SetEmitterType(const Ogre::String& emitter_type) {m_EmitterType = emitter_type;};
-    const Ogre::String& GetEmitterType() const {return m_EmitterType;};
-
-    void SetEmitsName(const Ogre::String& emitsName);
-    const Ogre::String& GetEmitsName() const {return m_EmitsName;};
-
-    void SetEmitsType(ParticleType emits_type) {m_EmitsType = emits_type;};
-    ParticleType GetEmitsType() const {return m_EmitsType;};
-
-    void SetEmissionRate(int rate) {m_EmissionRate = rate;};
-    int GetEmissionRate() const {return m_EmissionRate;};
-
-
-
-    // EMIT PARTICLE SETTINGS
-    void SetEmitDirection(const Ogre::Vector3& dir) {m_EmitDirection1 = dir; m_EmitDirection2 = dir;};
-    void SetEmitDirectionRange(const Ogre::Vector3& dir1, const Ogre::Vector3& dir2) {m_EmitDirection1 = dir1; m_EmitDirection2 = dir2;};
-    void SetEmitTotalTimeToLive(float time) {m_EmitTotalTimeToLive = time;};
-
-protected:
-    ParticleTechnique*                                  m_ParentTechnique;
-
-    Ogre::String                                        m_Name;
-    Ogre::String                                        m_EmitterType;
-
-    Ogre::String                                        m_EmitsName;
-    ParticleType                                        m_EmitsType;
-    static ParticleEmitterDictionary::EmissionRate      m_EmissionRateDictionary;
-    int                                                 m_EmissionRate;
-    Ogre::Real                                          m_EmissionRemainder;
-
-    static ParticleEmitterDictionary::Direction         m_DirectionDictionary;
-    Ogre::Vector3                                       m_EmitDirection1;
-    Ogre::Vector3                                       m_EmitDirection2;
-    static ParticleEmitterDictionary::TotalTimeToLive   m_TotalTimeToLiveDictionary;
-    float                                               m_EmitTotalTimeToLive;
-};
-
-
-
-#endif // PARTICLE_EMITTER_H

+ 0 - 34
QGearsMain/include/core/particles/ParticleEmitterDictionary.h

@@ -1,34 +0,0 @@
-#ifndef PARTICLE_EMITTER_DICTIONARY_H
-#define PARTICLE_EMITTER_DICTIONARY_H
-
-#include <OgreStringInterface.h>
-
-
-
-namespace ParticleEmitterDictionary
-{
-    class EmissionRate : public Ogre::ParamCommand
-    {
-    public:
-        Ogre::String doGet(const void* target) const {return "";};
-        void doSet(void* target, const Ogre::String& val);
-    };
-
-    class TotalTimeToLive : public Ogre::ParamCommand
-    {
-    public:
-        Ogre::String doGet(const void* target) const {return "";};
-        void doSet(void* target, const Ogre::String& val);
-    };
-
-    class Direction : public Ogre::ParamCommand
-    {
-    public:
-        Ogre::String doGet(const void* target) const {return "";};
-        void doSet(void* target, const Ogre::String& val);
-    };
-}
-
-
-
-#endif // PARTICLE_EMITTER_DICTIONARY_H

+ 0 - 17
QGearsMain/include/core/particles/ParticleEmitterTranslator.h

@@ -1,17 +0,0 @@
-#ifndef PARTICLE_EMITTER_TRANSLATOR_H
-#define PARTICLE_EMITTER_TRANSLATOR_H
-
-#include <OgreScriptTranslator.h>
-#include <OgreSingleton.h>
-
-
-
-class ParticleEmitterTranslator : public Ogre::ScriptTranslator
-{
-public:
-    void translate(Ogre::ScriptCompiler *compiler, const Ogre::AbstractNodePtr &node);
-};
-
-
-
-#endif // PARTICLE_EMITTER_TRANSLATOR_H

+ 0 - 140
QGearsMain/include/core/particles/ParticlePool.h

@@ -1,140 +0,0 @@
-#ifndef PARTICLE_POOL_H
-#define PARTICLE_POOL_H
-
-#include <list>
-
-
-
-template <typename T>
-class ParticlePool
-{
-public:
-    typedef std::list<T*> PoolList;
-    typedef typename PoolList::iterator PoolIterator; // The 'typename' MUST be added, since T is not a fixed type
-
-    ParticlePool() {};
-    virtual ~ParticlePool() {};
-
-    bool
-    IsEmpty()
-    {
-        return m_Released.empty();
-    };
-
-    size_t
-    GetSize()
-    {
-        return m_Released.size();
-    };
-
-    void
-    ResetIterator()
-    {
-        m_PoolIterator = m_Released.begin();
-    };
-
-    T*
-    GetFirst()
-    {
-        ResetIterator();
-        if (End())
-        {
-            return NULL;
-        }
-
-        T* t = *m_PoolIterator;
-        return t;
-    };
-
-    T*
-    GetNext()
-    {
-        if (End())
-        {
-            return NULL;
-        }
-
-        ++m_PoolIterator;
-        if (End())
-        {
-            return NULL;
-        }
-
-        T* t = *m_PoolIterator;
-        return t;
-    };
-
-    bool
-    End()
-    {
-        return m_PoolIterator == m_Released.end();
-    };
-
-    void
-    Clear()
-    {
-        m_Locked.clear();
-        m_Released.clear();
-    };
-
-    void
-    AddElement(T* element)
-    {
-        m_Locked.push_back(element);
-    };
-
-    T*
-    ReleaseElement()
-    {
-        // Return with 0 if no elements left
-        if (m_Locked.empty())
-        {
-            return 0;
-        }
-
-        // Move element from locked elements to released elements and return it
-        T* t = m_Locked.front();
-        m_Released.splice(m_Released.end(), m_Locked, m_Locked.begin());
-        return t;
-    };
-
-    void
-    ReleaseAllElements()
-    {
-        // Move all elements from locked elements to released elements
-        m_Released.splice(m_Released.end(), m_Locked);
-        ResetIterator();
-    };
-
-    void
-    LockLatestElement()
-    {
-        if (End() == false)
-        {
-            m_Locked.push_back(*m_PoolIterator);
-            m_PoolIterator = m_Released.erase(m_PoolIterator);
-        }
-    };
-
-    void LockAllElements()
-    {
-        // Move all elements from released elements to locked elements
-        m_Locked.splice(m_Locked.end(), m_Released);
-        ResetIterator();
-    };
-
-    std::list<T*>&
-    GetActiveElementsList()
-    {
-        return m_Released;
-    };
-
-protected:
-    PoolList        m_Released; // List with precreated 'released' elements
-    PoolList        m_Locked; // List with precreated 'locked' elements
-    PoolIterator    m_PoolIterator;
-};
-
-
-
-#endif // PARTICLE_POOL_H

+ 0 - 150
QGearsMain/include/core/particles/ParticlePoolMap.h

@@ -1,150 +0,0 @@
-#ifndef PARTICLE_POOL_MAP_H
-#define PARTICLE_POOL_MAP_H
-
-
-
-template <typename T>
-class ParticlePoolMap
-{
-public:
-    typedef std::multimap<Ogre::String, T*> PoolMapMap;
-    typedef typename PoolMapMap::iterator PoolMapIterator; // The 'typename' MUST be added, since T is not a fixed type
-
-    ParticlePoolMap () {};
-    virtual ~ParticlePoolMap() {};
-
-    bool
-    IsEmpty()
-    {
-        return m_Released.empty();
-    };
-
-    size_t
-    GetSize()
-    {
-        return m_Released.size();
-    };
-
-    void
-    ResetIterator()
-    {
-        m_PoolMapIterator = m_Released.begin();
-    };
-
-    T*
-    GetFirst()
-    {
-        ResetIterator();
-        if (End())
-        {
-            return NULL;
-        }
-
-        T* t = m_PoolMapIterator->second;
-        return t;
-    };
-
-    T*
-    GetNext()
-    {
-        if (End())
-        {
-            return NULL;
-        }
-
-        ++m_PoolMapIterator;
-        if (End())
-        {
-            return NULL;
-        }
-
-        T* t = m_PoolMapIterator->second;
-        return t;
-    };
-
-    bool
-    End()
-    {
-        return m_PoolMapIterator == m_Released.end();
-    };
-
-    void
-    Clear()
-    {
-        m_Locked.clear();
-        m_Released.clear();
-    };
-
-    void
-    AddElement(const Ogre::String& key, T* element)
-    {
-        m_Locked.insert(make_pair(key, element));
-    };
-
-    T*
-    ReleaseElement(const Ogre::String& key)
-    {
-        // Return with 0 if no elements left
-        if (m_Locked.empty())
-        {
-            return NULL;
-        }
-
-        // Return the first element that is encountered
-        T* t = 0;
-        PoolMapIterator it;
-        it = m_Locked.find(key);
-        if (it != m_Locked.end())
-        {
-            // Get the element and move it to the released elements list
-            t = it->second;
-            m_Released.insert(make_pair(key, t));
-            m_Locked.erase(it);
-        }
-
-        return t;
-    };
-
-    void
-    ReleaseAllElements()
-    {
-        // Move all elements from locked elements to released elements
-        PoolMapIterator it;
-        for (it = m_Locked.begin(); it != m_Locked.end(); ++it)
-        {
-            m_Released.insert(make_pair(it->first, it->second));
-        }
-        m_Locked.clear();
-        ResetIterator();
-    };
-
-    void
-    LockLatestElement()
-    {
-        // Move element pointed by iterator from released elements to locked elements
-        m_Locked.insert(make_pair(m_PoolMapIterator->first, m_PoolMapIterator->second));
-        m_Released.erase(m_PoolMapIterator++); // Watch the ++ at the end to set mPoolMapIterator to the next element
-    };
-
-    void
-    LockAllElements()
-    {
-        // Move all elements from release elements to locked elements
-        PoolMapIterator it;
-        for (it = m_Released.begin(); it != m_Released.end(); ++it)
-        {
-            m_Locked.insert(make_pair(it->first, it->second));
-        }
-        m_Released.clear();
-        ResetIterator();
-    };
-
-protected:
-    PoolMapMap m_Released;
-    PoolMapMap m_Locked;
-    PoolMapIterator m_PoolMapIterator;
-};
-
-
-
-#endif // PARTICLE_POOL_MAP_H

+ 0 - 43
QGearsMain/include/core/particles/ParticleRenderer.h

@@ -1,43 +0,0 @@
-#ifndef PARTICLE_RENDERER_H
-#define PARTICLE_RENDERER_H
-
-#include <OgreString.h>
-#include <OgreStringInterface.h>
-
-#include "ParticlePool.h"
-
-class ParticleTechnique;
-class VisualParticle;
-
-
-
-class ParticleRenderer : public Ogre::StringInterface
-{
-public:
-    ParticleRenderer();
-    virtual ~ParticleRenderer();
-
-    virtual void CopyAttributesTo(ParticleRenderer* renderer);
-
-    void SetRendererInitialised(bool renderer_initialised);
-    bool IsRendererInitialised() const;
-
-    void SetRendererType(Ogre::String renderer_type);
-    const Ogre::String& GetRendererType() const;
-
-    void SetParentTechnique(ParticleTechnique* parent_technique);
-    const ParticleTechnique* GetParentTechnique() const;
-
-    virtual void SetVisible(bool visible = true) = 0;
-    virtual void Initialize() = 0;
-    virtual void UpdateRenderQueue(Ogre::RenderQueue* queue, ParticlePool<VisualParticle>& pool) = 0;
-
-protected:
-    bool                m_RendererInitialised;
-    Ogre::String        m_RendererType;
-    ParticleTechnique*  m_ParentTechnique;
-};
-
-
-
-#endif // PARTICLE_RENDERER_H

+ 0 - 38
QGearsMain/include/core/particles/ParticleRendererFactory.h

@@ -1,38 +0,0 @@
-#ifndef PARTICLE_RENDERER_FACTORY_H
-#define PARTICLE_RENDERER_FACTORY_H
-
-#include "ParticleRenderer.h"
-
-
-
-class ParticleRendererFactory
-{
-public:
-    ParticleRendererFactory(){};
-    virtual ~ParticleRendererFactory(){};
-
-    virtual Ogre::String GetRendererType() const = 0;
-
-    virtual ParticleRenderer* CreateRenderer() = 0;
-
-    void DestroyRenderer (ParticleRenderer* renderer)
-    {
-        if (renderer != NULL)
-        {
-            delete renderer;
-        }
-    };
-
-protected:
-    template <class T>
-    ParticleRenderer* _createRenderer()
-    {
-        ParticleRenderer* particle_renderer = new T();
-        particle_renderer->SetRendererType(GetRendererType());
-        return particle_renderer;
-    };
-};
-
-
-
-#endif // PARTICLE_RENDERER_FACTORY_H

+ 0 - 17
QGearsMain/include/core/particles/ParticleRendererTranslator.h

@@ -1,17 +0,0 @@
-#ifndef PARTICLE_RENDERER_TRANSLATOR_H
-#define PARTICLE_RENDERER_TRANSLATOR_H
-
-#include <OgreScriptTranslator.h>
-#include <OgreSingleton.h>
-
-
-
-class ParticleRendererTranslator : public Ogre::ScriptTranslator
-{
-public:
-    void translate(Ogre::ScriptCompiler *compiler, const Ogre::AbstractNodePtr &node);
-};
-
-
-
-#endif // PARTICLE_RENDERER_TRANSLATOR_H

+ 0 - 37
QGearsMain/include/core/particles/ParticleSystem.h

@@ -1,37 +0,0 @@
-#ifndef PARTICLE_SYSTEM_H
-#define PARTICLE_SYSTEM_H
-
-#include <OgreMovableObject.h>
-
-#include "ParticleTechnique.h"
-
-
-
-class ParticleSystem : public Ogre::MovableObject
-{
-public:
-    ParticleSystem(const Ogre::String& name);
-    virtual ~ParticleSystem();
-    void CopyAttributesTo(ParticleSystem* ps);
-
-    // realization of Ogre::MovableObject
-    const Ogre::String& getMovableType() const;
-    const Ogre::AxisAlignedBox& getBoundingBox() const;
-    Ogre::Real getBoundingRadius() const;
-    void _updateRenderQueue(Ogre::RenderQueue* queue);
-    void visitRenderables(Ogre::Renderable::Visitor* visitor, bool debugRenderables = false) {};
-
-    void Update(Ogre::Real time_elapsed);
-
-    // technique
-    ParticleTechnique* CreateTechnique();
-    void AddTechnique(ParticleTechnique* technique);
-    void DestroyAllTechniques();
-
-private:
-    std::vector<ParticleTechnique*> m_Techniques;
-};
-
-
-
-#endif // PARTICLE_SYSTEM_H

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini