Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BasedOnStyle: Google
ColumnLimit: 100
ColumnLimit: 120
UseTab: Never
IndentWidth: 4
BreakBeforeBraces: Allman
Expand Down
20 changes: 2 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
# Visual code
.vs/

# Visual studio project files
*.vcxproj
*.vcxproj.filters
*.sln

# Visual studio temp files
*.dir/
Debug/
Release/
x64/

# CMake cache files
cmake_install.cmake
CMakeCache.txt
CMakeFiles/
build/
CMakeUserPresets.json
28 changes: 0 additions & 28 deletions .gitmodules

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.configureOnOpen": true
}
7 changes: 0 additions & 7 deletions Application/CMakeLists.txt

This file was deleted.

29 changes: 0 additions & 29 deletions Application/Lib/CMakeLists.txt

This file was deleted.

14 changes: 0 additions & 14 deletions Application/Lib/include/application/app/AGameApplication.h

This file was deleted.

20 changes: 0 additions & 20 deletions Application/Lib/include/application/io/LoadGame.h

This file was deleted.

11 changes: 0 additions & 11 deletions Application/Lib/source/app/AGameApplication.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions Application/Lib/source/game/IController.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions Application/Lib/source/game/IGameState.cpp

This file was deleted.

35 changes: 0 additions & 35 deletions Application/Test/CMakeLists.txt

This file was deleted.

3 changes: 0 additions & 3 deletions Application/Test/source/Main.cpp

This file was deleted.

59 changes: 43 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,50 @@
cmake_minimum_required (VERSION 3.0.0)
project (KernEngine)
cmake_minimum_required(VERSION 3.25.0)
project(KernEngine)

# Use folder structure
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
# Demo project as default startup
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT RenderDemo)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CXX_STANDARD_REQUIRED ON)

# Foundation library
add_subdirectory (Foundation)
if (MSVC)
# Ignore warnings about missing pdb
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ignore:4099")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /ignore:4099")
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /ignore:4099")
endif()

# Graphics and rendering library
add_subdirectory (Graphics)

# Application layer library
add_subdirectory (Application)
# Testing
find_package(catch2 REQUIRED)

# Utility library for toolkit
add_subdirectory (Util)
# Dependencies
# Foundation
find_package(glm REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(SQLite3 REQUIRED)
find_package(fmtlog REQUIRED)

# Tools and applications
add_subdirectory (Toolkit)
# Graphics
find_package(OpenGL REQUIRED)
find_package(glfw3 REQUIRED)
find_package(glad REQUIRED)
find_package(tinyobjloader REQUIRED)
find_package(assimp REQUIRED)
find_package(stb REQUIRED)
find_package(Freetype REQUIRED)
find_package(imgui REQUIRED)

# Demo
add_subdirectory (Demo)
# Audio
find_package(OpenAL REQUIRED)
find_package(vorbis REQUIRED)
find_package(minimp3 REQUIRED)

# Scripting
find_package(lua REQUIRED)

# Engine
add_subdirectory(Engine)

# Demo applications and sample games
# Depends on Engine
add_subdirectory(Demo)
15 changes: 8 additions & 7 deletions Demo/CG2015/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
cmake_minimum_required (VERSION 3.0.0)
project (DemoCG2015)
# Computer Graphics 2 project from 2015
project (CG2015)

file (GLOB_RECURSE SOURCE_FILES
file (GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/source/*.cxx
${CMAKE_CURRENT_SOURCE_DIR}/source/*.h
${CMAKE_CURRENT_SOURCE_DIR}/source/*.hpp
${CMAKE_CURRENT_SOURCE_DIR}/source/*.hxx
)
# Source group to preserve folder structure in ide
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCE_FILES})

add_executable (${PROJECT_NAME} ${SOURCE_FILES})

set_target_properties (${PROJECT_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD 17
FOLDER "Demo"
)

# Link dependencies
target_link_libraries (${PROJECT_NAME}
LINK_PRIVATE Application
PRIVATE EngineLib
)

# Includes
target_include_directories (${PROJECT_NAME}
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/source
)
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions Demo/CG2015/data/audio/sfx/Readme.txt

This file was deleted.

Binary file added Demo/CG2015/data/audio/sfx/explosion-91872.mp3
Binary file not shown.
Binary file removed Demo/CG2015/data/audio/sfx/explosion1.mp3
Binary file not shown.
Binary file added Demo/CG2015/data/audio/sfx/shoot02wav-14562.mp3
Binary file not shown.
Binary file removed Demo/CG2015/data/image/lava_ground.png
Binary file not shown.
2 changes: 1 addition & 1 deletion Demo/CG2015/data/material/stone_lava.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"base" : "data/image/lava_ground.png",
"base" : "data/image/lava_ground.jpg",
"glow" : "data/image/lava_ground_glow.png"
}
2 changes: 0 additions & 2 deletions Demo/CG2015/data/script/main.lua

This file was deleted.

4 changes: 2 additions & 2 deletions Demo/CG2015/data/startup.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# and sets the application into the initial game state.
# This mode is used for actual games.
# The default value is demo.
type=demo
#type=game
#type=demo
type=game


[scene]
Expand Down
Loading