Semi-working base for bgfx renderer

This commit is contained in:
2015-09-08 16:13:59 +02:00
parent c7f17c8ef0
commit c24b039005
47 changed files with 11176 additions and 43 deletions
+4
View File
@@ -7,6 +7,7 @@ find_package(Boost REQUIRED COMPONENTS system filesystem thread chrono)
find_package(assimp REQUIRED)
find_package(ZLIB REQUIRED)
find_package(PNG REQUIRED)
find_package(X11 REQUIRED)
find_package(BGFX REQUIRED)
# GLM
@@ -19,6 +20,7 @@ include_directories(
${Boost_INCLUDE_DIRS}
${assimp_INCLUDE_DIRS}
${PNG_INCLUDE_DIRS}
${X11_INCLUDE_DIR}
${BGFX_INCLUDE_DIRS}
)
@@ -70,6 +72,7 @@ target_link_libraries(game
${Boost_LIBRARIES}
${assimp_LIBRARIES}
${PNG_LIBRARIES}
${X11_LIBRARIES}
${BGFX_LIBRARIES}
)
@@ -84,6 +87,7 @@ target_link_libraries(breakout
${Boost_LIBRARIES}
${assimp_LIBRARIES}
${PNG_LIBRARIES}
${X11_LIBRARIES}
${BGFX_LIBRARIES}
)
+3
View File
@@ -0,0 +1,3 @@
#include "PrecompiledHeader.h"
#include "Core/BGFXRenderer.h"
+2 -2
View File
@@ -75,7 +75,7 @@ void dd::FileWatcher::Worker::Check()
boost::filesystem::path path = kv.first;
FileEventCallback_t& callback = kv.second;
FileEventFlags flags = UpdateFileInfo(path);
if (flags != FileEventFlags::None && callback != nullptr)
if (flags != FileEventFlags::Nothing && callback != nullptr)
{
callback(path.string(), flags);
}
@@ -93,7 +93,7 @@ dd::FileWatcher::Worker::FileInfo dd::FileWatcher::Worker::GetFileInfo(boost::fi
dd::FileWatcher::FileEventFlags dd::FileWatcher::Worker::UpdateFileInfo(boost::filesystem::path path)
{
FileEventFlags flags = FileEventFlags::None;
FileEventFlags flags = FileEventFlags::Nothing;
if (boost::filesystem::exists(path))
{
FileInfo fi = GetFileInfo(path);