Skip to content

Commit

Permalink
UVRegion moved to 'maths'
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Mar 20, 2024
1 parent 521efe5 commit f64a851
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/frontend/ContentGfxCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#include "../assets/Assets.h"
#include "../content/Content.h"
#include "../content/ContentPack.h"
#include "../core_defs.h"
#include "../graphics/core/Atlas.h"
#include "../graphics/core/UVRegion.h"
#include "../maths/UVRegion.h"
#include "../voxels/Block.h"
#include "../core_defs.h"
#include "UiDocument.h"

ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) : content(content) {
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/core/Atlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <memory>
#include <vector>
#include <unordered_map>
#include "UVRegion.h"
#include "../../maths/UVRegion.h"
#include "../../typedefs.h"

class ImageData;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/core/Batch2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <stdlib.h>
#include <glm/glm.hpp>

#include "UVRegion.h"
#include "../../maths/UVRegion.h"

class Mesh;
class Texture;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/core/Batch3D.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef GRAPHICS_CORE_BATCH3D_H_
#define GRAPHICS_CORE_BATCH3D_H_

#include "UVRegion.h"
#include "../../maths/UVRegion.h"
#include "../../typedefs.h"

#include <memory>
Expand Down
1 change: 0 additions & 1 deletion src/graphics/core/UVRegion.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion src/graphics/render/BlocksRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <glm/glm.hpp>

#include "../core/Mesh.h"
#include "../core/UVRegion.h"
#include "../../maths/UVRegion.h"
#include "../../constants.h"
#include "../../content/Content.h"
#include "../../voxels/Block.h"
Expand Down
6 changes: 3 additions & 3 deletions src/graphics/core/UVRegion.h → src/maths/UVRegion.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef GRAPHICS_CORE_UVREGION_H_
#define GRAPHICS_CORE_UVREGION_H_
#ifndef MATHS_UVREGION_H_
#define MATHS_UVREGION_H_

class UVRegion {
public:
Expand All @@ -14,4 +14,4 @@ class UVRegion {
UVRegion() : u1(0.0f), v1(0.0f), u2(1.0f), v2(1.0f){}
};

#endif // SRC_GRAPHICS_UVREGION_H_
#endif // MATHS_UVREGION_H_
4 changes: 1 addition & 3 deletions src/voxels/Block.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
#include <vector>
#include <glm/glm.hpp>

// :<
#include "../graphics/core/UVRegion.h"

#include "../maths/aabb.h"
#include "../maths/UVRegion.h"
#include "../typedefs.h"

#define BLOCK_ITEM_SUFFIX ".item"
Expand Down

0 comments on commit f64a851

Please sign in to comment.