summaryrefslogtreecommitdiff
path: root/engine/xe_model.hpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-24 21:16:13 -0400
commitf81d611f0e298baffad68d83f208e2306fe38739 (patch)
treef42732149fe2bfb7d28e26ed36067d24fb21b30c /engine/xe_model.hpp
parentdelete old files (diff)
downloadminecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.gz
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.tar.bz2
minecraftvulkan-f81d611f0e298baffad68d83f208e2306fe38739.zip
remove Xe From engine class names
Diffstat (limited to 'engine/xe_model.hpp')
-rw-r--r--engine/xe_model.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engine/xe_model.hpp b/engine/xe_model.hpp
index 2ffe298..fec572f 100644
--- a/engine/xe_model.hpp
+++ b/engine/xe_model.hpp
@@ -11,7 +11,7 @@
namespace xe {
-class XeModel {
+class Model {
public:
struct Vertex {
@@ -35,13 +35,13 @@ class XeModel {
void loadModel(const std::string &filepath);
};
- XeModel(XeDevice &device, const XeModel::Builder &builder);
- ~XeModel();
+ Model(Device &device, const Model::Builder &builder);
+ ~Model();
- XeModel(const XeModel &) = delete;
- XeModel operator=(const XeModel &) = delete;
+ Model(const Model &) = delete;
+ Model operator=(const Model &) = delete;
- static std::unique_ptr<XeModel> createModelFromFile(XeDevice &device, const std::string &filepath);
+ static std::unique_ptr<Model> createModelFromFile(Device &device, const std::string &filepath);
void bind(VkCommandBuffer commandBuffer);
void draw(VkCommandBuffer commandBuffer);
@@ -50,13 +50,13 @@ class XeModel {
void createVertexBuffers(const std::vector<Vertex> &vertices);
void createIndexBuffers(const std::vector<uint32_t> &indices);
- XeDevice &xeDevice;
+ Device &xeDevice;
- std::unique_ptr<XeBuffer> vertexBuffer;
+ std::unique_ptr<Buffer> vertexBuffer;
uint32_t vertexCount;
bool hasIndexBuffer = false;
- std::unique_ptr<XeBuffer> indexBuffer;
+ std::unique_ptr<Buffer> indexBuffer;
uint32_t indexCount;
};