diff --git a/Sources/Overload/OvAnalytics/premake5.lua b/Sources/Overload/OvAnalytics/premake5.lua index ed0b17f8..4a449bde 100644 --- a/Sources/Overload/OvAnalytics/premake5.lua +++ b/Sources/Overload/OvAnalytics/premake5.lua @@ -1,7 +1,7 @@ project "OvAnalytics" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvAudio/premake5.lua b/Sources/Overload/OvAudio/premake5.lua index 8c9976e4..325b2a60 100644 --- a/Sources/Overload/OvAudio/premake5.lua +++ b/Sources/Overload/OvAudio/premake5.lua @@ -1,7 +1,7 @@ project "OvAudio" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "irrklang/include", "%{wks.location}/OvDebug/include", "%{wks.location}/OvMaths/include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvCore/premake5.lua b/Sources/Overload/OvCore/premake5.lua index 8f749ff9..d9cb6e2f 100644 --- a/Sources/Overload/OvCore/premake5.lua +++ b/Sources/Overload/OvCore/premake5.lua @@ -1,7 +1,7 @@ project "OvCore" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "stb_image/include", dependdir .. "lua/include", dependdir .. "bullet3/include", dependdir .. "glew/include", dependdir .. "irrklang/include", "%{wks.location}/OvAnalytics/include", "%{wks.location}/OvAudio/include", "%{wks.location}/OvDebug/include", "%{wks.location}/OvMaths/include", "%{wks.location}/OvPhysics/include", diff --git a/Sources/Overload/OvCore/src/OvCore/ECS/Components/CLight.cpp b/Sources/Overload/OvCore/src/OvCore/ECS/Components/CLight.cpp index a2141ba1..4001dde5 100644 --- a/Sources/Overload/OvCore/src/OvCore/ECS/Components/CLight.cpp +++ b/Sources/Overload/OvCore/src/OvCore/ECS/Components/CLight.cpp @@ -16,7 +16,7 @@ OvCore::ECS::Components::CLight::CLight(ECS::Actor & p_owner) : AComponent(p_owner), - m_data{ p_owner.transform.GetFTransform() } + m_data{ OvTools::Utils::ReferenceOrValue{ p_owner.transform.GetFTransform()} } { } diff --git a/Sources/Overload/OvDebug/premake5.lua b/Sources/Overload/OvDebug/premake5.lua index c599b58c..c3397a82 100644 --- a/Sources/Overload/OvDebug/premake5.lua +++ b/Sources/Overload/OvDebug/premake5.lua @@ -1,7 +1,7 @@ project "OvDebug" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvEditor/premake5.lua b/Sources/Overload/OvEditor/premake5.lua index 37a2a20a..22349cd6 100644 --- a/Sources/Overload/OvEditor/premake5.lua +++ b/Sources/Overload/OvEditor/premake5.lua @@ -1,6 +1,6 @@ project "OvEditor" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl","**.cpp", "**.lua", "**.rc" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "stb_image/include", dependdir .. "lua/include", dependdir .. "bullet3/include", dependdir .. "glew/include", dependdir .. "irrklang/include", "%{wks.location}/OvAnalytics/include", "%{wks.location}/OvAudio/include", "%{wks.location}/OvCore/include", diff --git a/Sources/Overload/OvGame/premake5.lua b/Sources/Overload/OvGame/premake5.lua index 5dd43e6d..944de261 100644 --- a/Sources/Overload/OvGame/premake5.lua +++ b/Sources/Overload/OvGame/premake5.lua @@ -1,6 +1,6 @@ project "OvGame" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl","**.cpp", "**.lua", "**.rc" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "stb_image/include", dependdir .. "lua/include", dependdir .. "bullet3/include", dependdir .. "glew/include", dependdir .. "irrklang/include", "%{wks.location}/OvAnalytics/include", "%{wks.location}/OvAudio/include", "%{wks.location}/OvCore/include", diff --git a/Sources/Overload/OvGame/src/OvGame/Core/Context.cpp b/Sources/Overload/OvGame/src/OvGame/Core/Context.cpp index 7495870e..d25a0489 100644 --- a/Sources/Overload/OvGame/src/OvGame/Core/Context.cpp +++ b/Sources/Overload/OvGame/src/OvGame/Core/Context.cpp @@ -44,7 +44,7 @@ OvGame::Core::Context::Context() : /* Window creation */ device = std::make_unique(deviceSettings); window = std::make_unique(*device, windowSettings); - std::vector iconRaw = { 0,0,144115188614240000,7500771567664627712,7860776967494637312,0,0,0,0,7212820467466371072,11247766461832697600,14274185407633888512,12905091124788992000,5626708973701824512,514575842263176960,0,0,6564302121125019648,18381468271671515136,18381468271654737920,18237353083595659264,18165295488836311040,6708138037527189504,0,4186681893338480640,7932834557741046016,17876782538917681152,11319824055216379904,15210934132358518784,18381468271520454400,1085667680982603520,0,18093237891929479168,18309410677600032768,11391881649237530624,7932834561381570304,17300321784231761408,15210934132375296000,8293405106311272448,2961143145139082752,16507969723533236736,17516777143216379904,10671305705855129600,7356091234422036224,16580027318695106560,2240567205413984000,18381468271470188544,10959253511276599296,4330520004484136960,10815138323200743424,11607771853338181632,8364614976649238272,17444719546862998784,2669156352,18381468269893064448,6419342512197474304,11103650170688640000,6492244531366860800,14346241902646925312,13841557270159628032,7428148827772098304,3464698581331941120,18381468268953606144,1645680384,18381468271554008832,7140201027266418688,5987558797656659712,17588834734687262208,7284033640602212096,14273902834169157632,18381468269087692288,6852253225049397248,17732667349600245504,16291515470083266560,10022503688432981760,11968059825861367552,9733991836700645376,14850363587428816640,18381468271168132864,16147400282007410688,656430432014827520,18381468270950094848,15715054717226194944,72057596690306560,11823944635485519872,15859169905251653376,17084149004500473856,8581352906816952064,2527949855582584832,18381468271419856896,8581352907253225472,252776704,1376441223417430016,14994761349590357760,10527190521537370112,0,9806614576878321664,18381468271671515136,17156206598538401792,6059619689256392448,10166619973990488064,18381468271403079424,17444719549178451968,420746240,870625192710242304,4906133035823863552,18381468269289150464,18381468271671515136,18381468271671515136,9950729769032620032,14778305994951169792,269422336,0,0,18381468268785833984,8941923452686178304,18381468270950094848,3440842496,1233456333565402880,0,0,0,11823944636091210240,2383877888,16724143605745719296,2316834816,0,0 }; + auto iconRaw = std::to_array({ 0,0,144115188614240000,7500771567664627712,7860776967494637312,0,0,0,0,7212820467466371072,11247766461832697600,14274185407633888512,12905091124788992000,5626708973701824512,514575842263176960,0,0,6564302121125019648,18381468271671515136,18381468271654737920,18237353083595659264,18165295488836311040,6708138037527189504,0,4186681893338480640,7932834557741046016,17876782538917681152,11319824055216379904,15210934132358518784,18381468271520454400,1085667680982603520,0,18093237891929479168,18309410677600032768,11391881649237530624,7932834561381570304,17300321784231761408,15210934132375296000,8293405106311272448,2961143145139082752,16507969723533236736,17516777143216379904,10671305705855129600,7356091234422036224,16580027318695106560,2240567205413984000,18381468271470188544,10959253511276599296,4330520004484136960,10815138323200743424,11607771853338181632,8364614976649238272,17444719546862998784,2669156352,18381468269893064448,6419342512197474304,11103650170688640000,6492244531366860800,14346241902646925312,13841557270159628032,7428148827772098304,3464698581331941120,18381468268953606144,1645680384,18381468271554008832,7140201027266418688,5987558797656659712,17588834734687262208,7284033640602212096,14273902834169157632,18381468269087692288,6852253225049397248,17732667349600245504,16291515470083266560,10022503688432981760,11968059825861367552,9733991836700645376,14850363587428816640,18381468271168132864,16147400282007410688,656430432014827520,18381468270950094848,15715054717226194944,72057596690306560,11823944635485519872,15859169905251653376,17084149004500473856,8581352906816952064,2527949855582584832,18381468271419856896,8581352907253225472,252776704,1376441223417430016,14994761349590357760,10527190521537370112,0,9806614576878321664,18381468271671515136,17156206598538401792,6059619689256392448,10166619973990488064,18381468271403079424,17444719549178451968,420746240,870625192710242304,4906133035823863552,18381468269289150464,18381468271671515136,18381468271671515136,9950729769032620032,14778305994951169792,269422336,0,0,18381468268785833984,8941923452686178304,18381468270950094848,3440842496,1233456333565402880,0,0,0,11823944636091210240,2383877888,16724143605745719296,2316834816,0,0 }); window->SetIconFromMemory(reinterpret_cast(iconRaw.data()), 16, 16); inputManager = std::make_unique(*window); window->MakeCurrentContext(); diff --git a/Sources/Overload/OvMaths/premake5.lua b/Sources/Overload/OvMaths/premake5.lua index aa14650a..957440f4 100644 --- a/Sources/Overload/OvMaths/premake5.lua +++ b/Sources/Overload/OvMaths/premake5.lua @@ -1,7 +1,7 @@ project "OvMaths" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvPhysics/premake5.lua b/Sources/Overload/OvPhysics/premake5.lua index f538013c..db8657de 100644 --- a/Sources/Overload/OvPhysics/premake5.lua +++ b/Sources/Overload/OvPhysics/premake5.lua @@ -1,7 +1,7 @@ project "OvPhysics" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "bullet3/include", "%{wks.location}/OvDebug/include", "%{wks.location}/OvMaths/include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvRendering/premake5.lua b/Sources/Overload/OvRendering/premake5.lua index cc1f0aaa..2d9f4238 100644 --- a/Sources/Overload/OvRendering/premake5.lua +++ b/Sources/Overload/OvRendering/premake5.lua @@ -1,7 +1,7 @@ project "OvRendering" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "glew/include", dependdir .. "stb_image/include", dependdir .. "assimp/include", "%{wks.location}/OvDebug/include", "%{wks.location}/OvMaths/include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvTools/premake5.lua b/Sources/Overload/OvTools/premake5.lua index f6631c31..0431bec8 100644 --- a/Sources/Overload/OvTools/premake5.lua +++ b/Sources/Overload/OvTools/premake5.lua @@ -1,7 +1,7 @@ project "OvTools" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvUI/premake5.lua b/Sources/Overload/OvUI/premake5.lua index f826271e..4c98e095 100644 --- a/Sources/Overload/OvUI/premake5.lua +++ b/Sources/Overload/OvUI/premake5.lua @@ -1,7 +1,7 @@ project "OvUI" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "glew/include", "%{wks.location}/OvMaths/include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}") diff --git a/Sources/Overload/OvWindowing/premake5.lua b/Sources/Overload/OvWindowing/premake5.lua index 0fb15a7f..688e252d 100644 --- a/Sources/Overload/OvWindowing/premake5.lua +++ b/Sources/Overload/OvWindowing/premake5.lua @@ -1,7 +1,7 @@ project "OvWindowing" kind "StaticLib" language "C++" - cppdialect "C++17" + cppdialect "C++20" files { "**.h", "**.inl", "**.cpp", "**.lua" } includedirs { "include", dependdir .. "glfw/include", dependdir .. "stb_image/include", "%{wks.location}/OvTools/include" } targetdir (outputdir .. "%{cfg.buildcfg}/%{prj.name}")