Remove Utility module and move its content to Core and TextRenderer modules
This commit is contained in:
committed by
Jérôme Leclercq
parent
965a00182c
commit
e64c2b036e
@@ -1,3 +1,4 @@
|
||||
#include <Nazara/Core/ByteArray.hpp>
|
||||
#include <Nazara/Core/ByteStream.hpp>
|
||||
#include <catch2/catch_approx.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include <Nazara/Utility/Image.hpp>
|
||||
#include <Nazara/Core/Image.hpp>
|
||||
#include <catch2/catch_approx.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <filesystem>
|
||||
|
||||
std::filesystem::path GetAssetDir();
|
||||
|
||||
SCENARIO("Images", "[Utility][Image]")
|
||||
SCENARIO("Images", "[Core][Image]")
|
||||
{
|
||||
WHEN("Loading PNG files")
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Utility/Image.hpp>
|
||||
#include <Nazara/Utility/ImageStream.hpp>
|
||||
#include <Nazara/Utility/PixelFormat.hpp>
|
||||
#include <Nazara/Core/Image.hpp>
|
||||
#include <Nazara/Core/ImageStream.hpp>
|
||||
#include <Nazara/Core/PixelFormat.hpp>
|
||||
#include <catch2/catch_approx.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <filesystem>
|
||||
@@ -17,7 +17,7 @@ void CompareFrames(const Nz::ImageStream& gif, std::vector<Nz::UInt8>& frameData
|
||||
REQUIRE(std::memcmp(frameData.data(), referenceImage.GetConstPixels(), frameData.size()) == 0);
|
||||
}
|
||||
|
||||
SCENARIO("Streamed images", "[Utility][ImageStream]")
|
||||
SCENARIO("Streamed images", "[Core][ImageStream]")
|
||||
{
|
||||
using namespace Nz::Literals;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include <Nazara/Utility/Mesh.hpp>
|
||||
#include <Nazara/Core/Mesh.hpp>
|
||||
#include <catch2/catch_approx.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <filesystem>
|
||||
|
||||
std::filesystem::path GetAssetDir();
|
||||
|
||||
SCENARIO("Meshes", "[Utility][Mesh]")
|
||||
SCENARIO("Meshes", "[Core][Mesh]")
|
||||
{
|
||||
WHEN("Loading OJB files")
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <Nazara/Core/SerializationContext.hpp>
|
||||
#include <Nazara/Core/Serialization.hpp>
|
||||
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/MemoryView.hpp>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <Nazara/Core/File.hpp>
|
||||
#include <Nazara/Core/StringExt.hpp>
|
||||
#include <Nazara/Core/VirtualDirectory.hpp>
|
||||
@@ -260,7 +259,7 @@ TEST_CASE("VirtualDirectory", "[Core][VirtualDirectory]")
|
||||
CHECK(resourceDir->GetEntry("./..", CheckOurselves));
|
||||
CHECK(resourceDir->GetEntry("./..", CheckOurselves));
|
||||
CHECK(resourceDir->GetEntry("Audio/../..", CheckOurselves));
|
||||
CHECK(resourceDir->GetEntry("Core/../Audio/../../..", CheckOurselves));
|
||||
CHECK(resourceDir->GetEntry("Utility/../Audio/../../..", CheckOurselves));
|
||||
}
|
||||
AND_THEN("Overriding the physical file with another one")
|
||||
{
|
||||
|
||||
@@ -4,4 +4,3 @@
|
||||
#include <Nazara/Network.hpp>
|
||||
#include <Nazara/Physics2D.hpp>
|
||||
#include <Nazara/Physics3D.hpp>
|
||||
#include <Nazara/Utility.hpp>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <Nazara/Utility/AbstractImage.hpp>
|
||||
#include <Nazara/Utility/Font.hpp>
|
||||
#include <Nazara/Utility/GuillotineImageAtlas.hpp>
|
||||
#include <Nazara/Core/AbstractImage.hpp>
|
||||
#include <Nazara/TextRenderer/Font.hpp>
|
||||
#include <Nazara/Core/GuillotineImageAtlas.hpp>
|
||||
#include <catch2/catch_approx.hpp>
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <array>
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
std::filesystem::path GetAssetDir();
|
||||
|
||||
SCENARIO("Fonts", "[Utility][Font]")
|
||||
SCENARIO("Fonts", "[TextRenderer][Font]")
|
||||
{
|
||||
WHEN("Loading default font")
|
||||
{
|
||||
Reference in New Issue
Block a user