Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
refactored file structure!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
xueyin wan committed Dec 14, 2016
1 parent dfd5ca7 commit cd56e76
Show file tree
Hide file tree
Showing 16 changed files with 206 additions and 175 deletions.
22 changes: 13 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@ include_directories("${GLFW_ROOT_DIR}/include")
# Find our Vulkan!
find_package(Vulkan REQUIRED)


# Note: trying to write files in dependency order
set(SOURCE_FILES
"src/main.cpp"
"src/main.cpp"
"src/third_party.cpp"
"src/renderer/vulkan_util.h"
"src/renderer/vulkan_util.cpp"
"src/renderer/VDeleter.h"
"src/renderer/VulkanContext.cpp"
"src/renderer/VulkanContext.h"
"src/util.h"
"src/util.cpp"
"src/scene.h"
"src/scene.cpp"
"src/renderer/raii.h"
"src/renderer/vulkan_util.h"
"src/renderer/vulkan_util.cpp"
"src/renderer/context.h"
"src/renderer/context.cpp"
"src/renderer/model.h"
"src/renderer/model.cpp"
"src/renderer/VulkanRenderer.h"
"src/renderer/VulkanRenderer.cpp"
"src/ShowBase.h"
"src/ShowBase.cpp"
"src/Scene.h"
"src/Scene.cpp"
)

add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/ShowBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include "ShowBase.h"

#include "renderer/VulkanContext.h"
#include "Scene.h"
#include "renderer/VulkanRenderer.h"
#include "scene.h"
#include "util.h"

#include <GLFW/glfw3.h>
Expand All @@ -24,7 +24,7 @@ class _ShowBase_Impl
{
private:
GLFWwindow* window = createWindow();
VulkanContext context{window};
VulkanRenderer context{window};
Camera camera;
// for measurement
float total_time_past = 0.0f;
Expand Down
Loading

0 comments on commit cd56e76

Please sign in to comment.