This commit is contained in:
ZY4N
2025-03-25 15:57:32 +01:00
parent a78be71e34
commit 70893c083b
24 changed files with 78 additions and 64 deletions

View File

@@ -2,11 +2,12 @@
#include <unordered_map>
#include "../../assets/read_buffers"
#include "../../assets/data_stores"
#include "assets/data/texture_data.hpp"
#include "assets/data_stores/texture_store.hpp"
#include "opengl/handles/texture_handle.hpp"
#include <vector>
#include "assets/data_stores.hpp"
#include "opengl/metadata/texture_metadata.hpp"
#include "opengl/resource_management/resource_manager.hpp"
@@ -15,7 +16,7 @@ namespace zgl
class texture_manager
{
public:
using store_type = dynamic_texture_store;
using store_type = assets::texture_store;
using store_id_type = store_type::id_type;
using metadata_type = texture_metadata;
using handle_type = texture_handle;
@@ -24,7 +25,7 @@ public:
static constexpr std::size_t min_garbage_collection_count = 4;
void process(store_type& store);
void process(const assets::data_stores& stores);
std::optional<entry_type> get_handle(store_id_type id);
@@ -34,7 +35,7 @@ protected:
resource_manager_type m_resource_manager;
private:
std::vector<std::pair<dynamic_texture_store::id_type, const dynamic_texture_buffer&>> m_texture_buffer;
std::vector<std::pair<store_id_type, const assets::texture_data&>> m_texture_buffer;
std::vector<GLuint> m_texture_id_buffer;
};