aboutsummaryrefslogtreecommitdiffstats
path: root/include/api-test/resource-manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/api-test/resource-manager.hpp')
-rw-r--r--include/api-test/resource-manager.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/api-test/resource-manager.hpp b/include/api-test/resource-manager.hpp
new file mode 100644
index 0000000..f414367
--- /dev/null
+++ b/include/api-test/resource-manager.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "handle.hpp"
+#include "freelist.hpp"
+#include "texture.hpp"
+#include "buffer.hpp"
+
+class resourcemanager {
+public:
+
+ handle<texture> create_texture(const texture_desc& desc);
+
+ handle<buffer> create_buffer(const buffer_desc& desc);
+
+ const texture& get_texture(handle<texture> handle);
+
+ const buffer& get_buffer(handle<buffer> handle);
+
+private:
+ freelist<texture> textures;
+ freelist<buffer> buffers;
+};