diff options
Diffstat (limited to 'src/GFX/Binder.hpp')
| -rw-r--r-- | src/GFX/Binder.hpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/GFX/Binder.hpp b/src/GFX/Binder.hpp index 773518d..6103e09 100644 --- a/src/GFX/Binder.hpp +++ b/src/GFX/Binder.hpp @@ -1,6 +1,6 @@ #pragma once -#include <cstdint> +#include "../Common/Sizes.hpp" #include "Mesh.hpp" namespace MC::GFX { @@ -10,23 +10,23 @@ public: void bind() const; void unbind() const; - bool has_indices() const; - size_t size() const; + Bool has_indices() const; + USize size() const; private: BindableMesh( - uint32_t vao, - size_t vertex_count, - size_t attribute_count + U32 vao, + USize vertex_count, + USize attribute_count ) : m_vao(vao), m_vertex_count(vertex_count), m_has_indices(vertex_count > 0), m_attribute_count(attribute_count) {} - uint32_t m_vao; - size_t m_vertex_count; - bool m_has_indices; - size_t m_attribute_count; + U32 m_vao; + USize m_vertex_count; + Bool m_has_indices; + USize m_attribute_count; friend class Binder; }; @@ -38,11 +38,11 @@ public: static BindableMesh load(const Mesh& mesh); private: - static uint32_t create_vao(); + static U32 create_vao(); static void unbind_vao(); - static void store_in_attribute_list(uint32_t attribute, int attribute_size, int type_size, const void* data, long data_size); - static void store_indices(const uint32_t* indices, size_t indices_size); + static void store_in_attribute_list(U32 attribute, Int attribute_size, Int type_size, const void* data, long data_size); + static void store_indices(const U32* indices, USize indices_size); }; } \ No newline at end of file |
