tried making naming more uniform and implemented most of the opengl managers

This commit is contained in:
ZY4N
2025-03-25 02:22:44 +01:00
parent c609d49f0d
commit 71ea2d9237
155 changed files with 4097 additions and 2434 deletions

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_material_library_store.hpp"
#include "assets/data_stores/material_library_store.hpp"
using material_library_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_material_library_store::id_type>;
namespace assets
{
using material_library_prefetch_lookup = std::unordered_map<std::filesystem::path, material_library_store::id_type>;
}

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_material_store.hpp"
#include "assets/data_stores/material_store.hpp"
using material_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_material_store::id_type>;
namespace assets
{
using material_prefetch_lookup = std::unordered_map<std::filesystem::path, material_store::id_type>;
}

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_mesh_store.hpp"
#include "assets/data_stores/mesh_store.hpp"
using mesh_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_mesh_store::id_type>;
namespace assets
{
using mesh_prefetch_lookup = std::unordered_map<std::filesystem::path, mesh_store::id_type>;
}

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_point_cloud_store.hpp"
#include "assets/data_stores/point_cloud_store.hpp"
using point_cloud_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_point_cloud_store::id_type>;
namespace assets
{
using point_cloud_prefetch_lookup = std::unordered_map<std::filesystem::path, point_cloud_store::id_type>;
}

View File

@@ -3,43 +3,47 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_pose_store.hpp"
#include "util/uix.hpp"
#include "assets/data_stores/pose_store.hpp"
class pose_prefetch_lookup {
namespace assets
{
class pose_prefetch_lookup
{
public:
using index_type = ztu::u32;
using directory_lookup = std::unordered_map<std::filesystem::path, index_type>;
using directory_iterator = std::pair<directory_lookup::iterator, index_type>;
using index_lookup = std::vector<index_type>;
using index_iterator = index_lookup::iterator;
using lookup_type = std::vector<dynamic_pose_store::id_type>;
using lookup_type = std::vector<pose_store::id_type>;
using iterator = lookup_type::iterator;
void emplace(
const std::filesystem::path& directory,
index_type index,
dynamic_pose_store::id_type id
pose_store::id_type id
);
void emplace_hint_dir(
directory_iterator directory_it,
index_type index,
dynamic_pose_store::id_type id
pose_store::id_type id
);
void emplace_hint_dir_index(
directory_iterator directory_it,
index_iterator index_it,
index_type index,
dynamic_pose_store::id_type id
pose_store::id_type id
);
std::pair<directory_iterator, bool> find_directory(
const std::filesystem::path& directory
);
std::pair<index_iterator, dynamic_pose_store::id_type> find_index(
std::pair<index_iterator, pose_store::id_type> find_index(
directory_iterator directory_it,
index_type index
);
@@ -54,3 +58,5 @@ private:
index_lookup m_directory_indices; // count before indices, indices sorted per dir
lookup_type m_pose_ids; // offset by 1
};
}

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_shader_st
#include "assets/data_stores/shader_source_store.hpp"
using texture_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_texture_store::id_type>;
namespace assets
{
using shader_source_prefetch_lookup = std::unordered_map<std::filesystem::path, shader_source_store::id_type>;
}

View File

@@ -2,6 +2,11 @@
#include <filesystem>
#include <unordered_map>
#include "assets/dynamic_data_stores/dynamic_texture_store.hpp"
#include "assets/data_stores/texture_store.hpp"
using texture_prefetch_lookup = std::unordered_map<std::filesystem::path, dynamic_texture_store::id_type>;
namespace assets
{
using texture_prefetch_lookup = std::unordered_map<std::filesystem::path, texture_store::id_type>;
}