From 9b60b862e58905780bf47f69a34522fde046ebea Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 27 Sep 2022 17:03:43 -0400 Subject: procedural chunk loading --- engine/xe_image.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/xe_image.cpp') 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 #include @@ -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); -- cgit v1.2.3-freya