summaryrefslogtreecommitdiff
path: root/engine/xe_engine.hpp
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_engine.hpp
parentasync chunk meshing (diff)
downloadminecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.gz
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.tar.bz2
minecraftvulkan-9b60b862e58905780bf47f69a34522fde046ebea.zip
procedural chunk loading
Diffstat (limited to 'engine/xe_engine.hpp')
-rw-r--r--engine/xe_engine.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engine/xe_engine.hpp b/engine/xe_engine.hpp
index eff2d13..ae75afa 100644
--- a/engine/xe_engine.hpp
+++ b/engine/xe_engine.hpp
@@ -1,13 +1,12 @@
#pragma once
+#include "xe_buffer.hpp"
#include "xe_device.hpp"
#include "xe_renderer.hpp"
#include "xe_camera.hpp"
#include "xe_descriptors.hpp"
-#include "xe_image.hpp"
#include "xe_input.hpp"
#include "xe_sound.hpp"
-#include "xe_model.hpp"
#include <chrono>
#include <string>
@@ -30,11 +29,6 @@ class Engine {
Input& getInput() {return xeInput;}
Camera& getCamera() {return xeCamera;}
- Device& getDevice() {return xeDevice;}
-
- Model* loadModelFromFile(const std::string &filename);
- Model* loadModelFromData(std::vector<unsigned char> vertexData, uint32_t vertexSize, std::vector<uint32_t> indices);
- Image* loadImageFromFile(const std::string &filename, bool anisotropic = true);
bool beginFrame() { return xeRenderer.beginFrame(); }
void endFrame() { xeRenderer.endFrame(); }
@@ -63,6 +57,8 @@ class Engine {
std::unique_ptr<DescriptorPool> xeDescriptorPool;
friend class RenderSystem;
+ friend class Image;
+ friend class Model;
};
} \ No newline at end of file