summaryrefslogtreecommitdiff
path: root/engine/xe_image.cpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-27 17:03:43 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-27 17:03:43 -0400
commit9b60b862e58905780bf47f69a34522fde046ebea (patch)
treebda8f9c998cdeec6ad1a5b4fb6e60800dbaca8ad /engine/xe_image.cpp
parentasync chunk meshing (diff)
downloadminecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.gz
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.bz2
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.zip
procedural chunk loading
Diffstat (limited to 'engine/xe_image.cpp')
-rw-r--r--engine/xe_image.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/xe_image.cpp b/engine/xe_image.cpp
index cabcea3..1ac82e2 100644
--- a/engine/xe_image.cpp
+++ b/engine/xe_image.cpp
@@ -1,4 +1,5 @@
#include "xe_image.hpp"
+#include "xe_engine.hpp"
#include <vulkan/vulkan.h>
#include <stdexcept>
@@ -10,7 +11,7 @@
namespace xe {
-Image::Image(Device &xeDevice, const std::string &filename, bool anisotropic) : xeDevice{xeDevice} {
+Image::Image(const std::string &filename, bool anisotropic) : xeDevice{Engine::getInstance()->xeDevice} {
createTextureImage(filename);
createTextureImageView();
createTextureSampler(anisotropic);