Put Collision folder in CMakeLists.txt and altered paths.

This commit is contained in:
William Moberg
2015-12-14 17:35:39 +01:00
parent e6fa9df3a5
commit ae7d4b9097
9 changed files with 18 additions and 10 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
#ifndef PlayerSystem_h__
#define PlayerSystem_h__
#ifndef TriggerSystem_h__
#define TriggerSystem_h__
#include <glm/common.hpp>
#include <unordered_set>
#include "Core/System.h"
#include "Core/EventBroker.h"
@@ -17,7 +18,7 @@ public:
virtual void Update(World* world, ComponentWrapper& collision, double dt) override;
private:
std::unordered_map<EntityID, std::unordered_set<EntityID>> m_EntitiesInTrigger;
};
#endif
+7
View File
@@ -70,6 +70,12 @@ file(GLOB SOURCE_FILES_GUI
)
source_group(GUI FILES ${SOURCE_FILES_GUI})
file(GLOB SOURCE_FILES_Collision
"${INCLUDE_PATH}/Collision/*.h"
"Collision/*.cpp"
)
source_group(Collision FILES ${SOURCE_FILES_Collision})
set(SOURCE_FILES
${SOURCE_FILES_Core}
${SOURCE_FILES_Core_Util}
@@ -78,6 +84,7 @@ set(SOURCE_FILES
${SOURCE_FILES_GUI}
${SOURCE_FILES_Rendering}
${SOURCE_FILES_Rendering_Util}
${SOURCE_FILES_Collision}
)
set(LIBRARIES
+1 -1
View File
@@ -1,6 +1,6 @@
#include <algorithm>
#include "Core/Collision.h"
#include "Collision/Collision.h"
#include "Engine/GLM.h"
namespace Collision
+1 -1
View File
@@ -3,7 +3,7 @@
#include <bitset>
#include "Core/OctTree.h"
#include "Core/Collision.h"
#include "Collision/Collision.h"
#include "Core/World.h"
#include "Rendering/Camera.h"
+1 -1
View File
@@ -3,7 +3,7 @@
#include <boost/test/execution_monitor.hpp>
using boost::unit_test_framework::test_suite;
using boost::unit_test_framework::test_case;
#include "Engine\Core\Collision.h"
#include "Engine/Collision/Collision.h"
#include "Engine/Core/AABB.h"
#include "Engine/Core/Ray.h"
#include <stdlib.h>//srand
+1 -1
View File
@@ -15,7 +15,7 @@ Game::Game(int argc, char* argv[]) : someOctTree(AABB(-0.5f*worldSize, 0.5f*worl
m_RenderQueueFactory = new RenderQueueFactory();
// Create the renderer
m_Renderer = new Renderer();
m_Renderer = new Renderer(m_EventBroker);
m_Renderer->SetFullscreen(m_Config->Get<bool>("Video.Fullscreen", false));
m_Renderer->SetVSYNC(m_Config->Get<bool>("Video.VSYNC", false));
m_Renderer->SetResolution(Rectangle(
+1 -1
View File
@@ -11,7 +11,7 @@
#include "Rendering/RenderQueueFactory.h"
#include "OctTreeTestHardCodedTestWorld.h"
#include "Core\Collision.h"
#include "Collision/Collision.h"
class Game
+1 -1
View File
@@ -3,7 +3,7 @@
#include <boost/test/execution_monitor.hpp>
using boost::unit_test_framework::test_suite;
using boost::unit_test_framework::test_case;
#include <Engine\Core\Collision.h>
#include "Engine/Collision/Collision.h"
#include "Engine/Core/AABB.h"
#include "Engine/Core/Ray.h"
#include <stdlib.h>//srand
+1 -1
View File
@@ -3,7 +3,7 @@
#include <bitset>
#include "OldOctTree.h"
#include "Core/Collision.h"
#include "Collision/Collision.h"
#include "Core/World.h"
#include "Rendering/Camera.h"