UVRegion moved to 'maths'
This commit is contained in:
@@ -5,10 +5,10 @@
|
|||||||
#include "../assets/Assets.h"
|
#include "../assets/Assets.h"
|
||||||
#include "../content/Content.h"
|
#include "../content/Content.h"
|
||||||
#include "../content/ContentPack.h"
|
#include "../content/ContentPack.h"
|
||||||
#include "../graphics/core/Atlas.h"
|
|
||||||
#include "../graphics/core/UVRegion.h"
|
|
||||||
#include "../voxels/Block.h"
|
|
||||||
#include "../core_defs.h"
|
#include "../core_defs.h"
|
||||||
|
#include "../graphics/core/Atlas.h"
|
||||||
|
#include "../maths/UVRegion.h"
|
||||||
|
#include "../voxels/Block.h"
|
||||||
#include "UiDocument.h"
|
#include "UiDocument.h"
|
||||||
|
|
||||||
ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) : content(content) {
|
ContentGfxCache::ContentGfxCache(const Content* content, Assets* assets) : content(content) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "UVRegion.h"
|
#include "../../maths/UVRegion.h"
|
||||||
#include "../../typedefs.h"
|
#include "../../typedefs.h"
|
||||||
|
|
||||||
class ImageData;
|
class ImageData;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
#include "UVRegion.h"
|
#include "../../maths/UVRegion.h"
|
||||||
|
|
||||||
class Mesh;
|
class Mesh;
|
||||||
class Texture;
|
class Texture;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef GRAPHICS_CORE_BATCH3D_H_
|
#ifndef GRAPHICS_CORE_BATCH3D_H_
|
||||||
#define GRAPHICS_CORE_BATCH3D_H_
|
#define GRAPHICS_CORE_BATCH3D_H_
|
||||||
|
|
||||||
#include "UVRegion.h"
|
#include "../../maths/UVRegion.h"
|
||||||
#include "../../typedefs.h"
|
#include "../../typedefs.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
#include "UVRegion.h"
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
#include "../core/Mesh.h"
|
#include "../core/Mesh.h"
|
||||||
#include "../core/UVRegion.h"
|
#include "../../maths/UVRegion.h"
|
||||||
#include "../../constants.h"
|
#include "../../constants.h"
|
||||||
#include "../../content/Content.h"
|
#include "../../content/Content.h"
|
||||||
#include "../../voxels/Block.h"
|
#include "../../voxels/Block.h"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef GRAPHICS_CORE_UVREGION_H_
|
#ifndef MATHS_UVREGION_H_
|
||||||
#define GRAPHICS_CORE_UVREGION_H_
|
#define MATHS_UVREGION_H_
|
||||||
|
|
||||||
class UVRegion {
|
class UVRegion {
|
||||||
public:
|
public:
|
||||||
@@ -14,4 +14,4 @@ public:
|
|||||||
UVRegion() : u1(0.0f), v1(0.0f), u2(1.0f), v2(1.0f){}
|
UVRegion() : u1(0.0f), v1(0.0f), u2(1.0f), v2(1.0f){}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SRC_GRAPHICS_UVREGION_H_
|
#endif // MATHS_UVREGION_H_
|
||||||
+1
-3
@@ -5,10 +5,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
// :<
|
|
||||||
#include "../graphics/core/UVRegion.h"
|
|
||||||
|
|
||||||
#include "../maths/aabb.h"
|
#include "../maths/aabb.h"
|
||||||
|
#include "../maths/UVRegion.h"
|
||||||
#include "../typedefs.h"
|
#include "../typedefs.h"
|
||||||
|
|
||||||
#define BLOCK_ITEM_SUFFIX ".item"
|
#define BLOCK_ITEM_SUFFIX ".item"
|
||||||
|
|||||||
Reference in New Issue
Block a user