Fixes compile errors
This commit is contained in:
2
dependencies/glslang
vendored
2
dependencies/glslang
vendored
Submodule dependencies/glslang updated: dffbc79733...9a8c5fd1f4
2
dependencies/imgui
vendored
2
dependencies/imgui
vendored
Submodule dependencies/imgui updated: dc48a7c88e...9ca7ea00c8
2
dependencies/slang
vendored
2
dependencies/slang
vendored
Submodule dependencies/slang updated: 12b9782aee...6955616006
2
dependencies/tracy
vendored
2
dependencies/tracy
vendored
Submodule dependencies/tracy updated: 0e3b3c57fc...3258599899
@@ -1,8 +1,8 @@
|
||||
|
||||
add_subdirectory(renderer)
|
||||
#add_subdirectory(renderer)
|
||||
add_subdirectory(engine)
|
||||
add_subdirectory(objectloaders)
|
||||
#add_subdirectory(editor)
|
||||
#add_subdirectory(engine)
|
||||
add_subdirectory(editor)
|
||||
|
||||
message("-- Creating SYMLINK ${CMAKE_BINARY_DIR}/shaders -> ${CMAKE_CURRENT_SOURCE_DIR}/shaders")
|
||||
file(CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR}/shaders ${CMAKE_BINARY_DIR}/bin/shaders SYMBOLIC)
|
||||
|
||||
@@ -38,10 +38,7 @@ namespace fgl::engine::gui
|
||||
void drawComponentsList( GameObject& game_object )
|
||||
{
|
||||
ImGui::PushStyleVar( ImGuiStyleVar_ChildRounding, 5.0f );
|
||||
ImGui::BeginChild(
|
||||
"ComponentsList",
|
||||
ImVec2( 0, 0 ),
|
||||
ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_Border | ImGuiChildFlags_ResizeY );
|
||||
ImGui::BeginChild( "ComponentsList", ImVec2( 0, 0 ), ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_ResizeY );
|
||||
|
||||
ImGui::SeparatorText( "Components" );
|
||||
|
||||
@@ -55,7 +52,7 @@ namespace fgl::engine::gui
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
ImGui::BeginChild( "Selected", ImVec2( 0, 0 ), ImGuiChildFlags_Border );
|
||||
ImGui::BeginChild( "Selected", ImVec2( 0, 0 ) );
|
||||
|
||||
if ( SELECTED_COMPONENT != nullptr && std::ranges::find( components, SELECTED_COMPONENT ) != components.end() )
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Created by kj16609 on 6/5/24.
|
||||
//
|
||||
|
||||
|
||||
// ReSharper disable CppDFAInfiniteRecursion
|
||||
// ReSharper disable CppInconsistentNaming
|
||||
// ReSharper disable CppZeroConstantCanBeReplacedWithNullptr
|
||||
@@ -18,7 +17,8 @@
|
||||
|
||||
#include <string_view>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "imgui.h"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace ImGui
|
||||
{
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "Sampler.hpp"
|
||||
#include "debug/Track.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <vulkan/vulkan.hpp>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
#include <filesystem>
|
||||
#include <imgui.h>
|
||||
|
||||
#include "debug/Track.hpp"
|
||||
#include "engine/assets/AssetManager.hpp"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include <queue>
|
||||
|
||||
#include "TransferData.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/memory/buffers/vector/concepts.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "engine/rendering/RenderingFormats.hpp"
|
||||
#include "engine/rendering/pipelines/Attachment.hpp"
|
||||
#include "rendering/CommandBufferPool.hpp"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "assets/texture/Texture.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
#include "rendering/types.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/clock.hpp"
|
||||
#include "engine/debug/logging/logging.hpp"
|
||||
#include "imgui.h"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine::debug
|
||||
{
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/debug/logging/logging.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine::filesystem
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/Frustum.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace fgl::engine
|
||||
bool rayHit( [[maybe_unused]] const Ray& ray, [[maybe_unused]] const OrientedBoundingBox< CS::World >& obb )
|
||||
{
|
||||
//TODO: Implement raycasts
|
||||
FGL_TODO();
|
||||
// FGL_TODO();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool rayHit( [[maybe_unused]] const Ray& ray, [[maybe_unused]] const AxisAlignedBoundingBox< CS::World >& aabb )
|
||||
{
|
||||
FGL_TODO();
|
||||
// FGL_TODO();
|
||||
}
|
||||
|
||||
} // namespace fgl::engine
|
||||
@@ -8,9 +8,9 @@
|
||||
|
||||
#include <queue>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "VulkanBuffer.hpp"
|
||||
#include "engine/debug/Track.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace vk::raii
|
||||
{
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
#include <iostream>
|
||||
#include <type_traits>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
|
||||
namespace fgl::engine::memory
|
||||
{
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#include <variant>
|
||||
|
||||
#include "Scale.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/debug/logging/logging.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
#include "rotation/QuatRotation.hpp"
|
||||
#include "rotation/UniversalRotation.hpp"
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "OrientedBoundingBox.hpp"
|
||||
#include "engine/primitives/lines/LineSegment.hpp"
|
||||
|
||||
#define FGL_NOTNANVEC3( ... ) ;
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "BoundingBox.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/Scale.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
|
||||
#define FGL_NOTNAN(...)
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
template < CoordinateSpace CType >
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "LineBase.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/CoordinateSpace.hpp"
|
||||
#include "engine/primitives/planes/concepts.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "LineBase.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/planes/concepts.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/CoordinateSpace.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/primitives/CoordinateSpace.hpp"
|
||||
#include "engine/primitives/points/Coordinate.hpp"
|
||||
#include "engine/primitives/vectors/NormalVector.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
//
|
||||
#pragma once
|
||||
#include "EulerRotation.hpp"
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "QuatRotation.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
|
||||
#include <glm/vec3.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/constants.hpp"
|
||||
#include "engine/primitives/CoordinateSpace.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <queue>
|
||||
|
||||
#include "CommandBuffer.hpp"
|
||||
#include "FGL_DEFINES.hpp"
|
||||
#include "constants.hpp"
|
||||
#include "devices/PhysicalDevice.hpp"
|
||||
#include "types.hpp"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <vulkan/vulkan.hpp>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#pragma once
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/rendering/QueuePool.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include <slang.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/constants.hpp"
|
||||
#include "engine/debug/logging/logging.hpp"
|
||||
#include "libFGL/include/fgl/defines.hpp"
|
||||
#include "rendering/pipelines/Shader.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <unordered_map>
|
||||
|
||||
#include "descriptors/DescriptorSetLayout.hpp"
|
||||
#include "engine/FGL_DEFINES.hpp"
|
||||
#include "engine/rendering/pipelines/Shader.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
|
||||
@@ -72,11 +72,9 @@ namespace fgl::renderer
|
||||
.apiVersion = VK_API_VERSION_1_4,
|
||||
};
|
||||
|
||||
inline static vk::InstanceCreateInfo s_create_info {
|
||||
.pApplicationInfo = &s_app_info
|
||||
};
|
||||
inline static vk::InstanceCreateInfo s_create_info { .pApplicationInfo = &s_app_info };
|
||||
|
||||
Vulkan::Vulkan( const std::string_view app_name ) : m_ctx(), , m_instance( m_ctx, s_create_info )
|
||||
Vulkan::Vulkan( const std::string_view app_name ) : m_ctx(), m_instance( m_ctx, s_create_info )
|
||||
{}
|
||||
|
||||
Vulkan::~Vulkan()
|
||||
|
||||
Reference in New Issue
Block a user