Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-08 16:24:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-13 15:20:23 +0300
commit38ef35b1ed1d38ab58c7d7fb121f4f3b33869810 (patch)
tree6b3d8317b9e43a5875eb05cadb79ce2ebae859de /source/blender/gpu/intern/gpu_backend.hh
parentcb2565195e72ee4dc5c0b53b7cd5037b2169d55f (diff)
GPUDrawList: GL backend isolation
Diffstat (limited to 'source/blender/gpu/intern/gpu_backend.hh')
-rw-r--r--source/blender/gpu/intern/gpu_backend.hh12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_backend.hh b/source/blender/gpu/intern/gpu_backend.hh
index 24f592f214f..4dd6036e672 100644
--- a/source/blender/gpu/intern/gpu_backend.hh
+++ b/source/blender/gpu/intern/gpu_backend.hh
@@ -25,13 +25,21 @@
#pragma once
-struct GPUContext;
+#include "gpu_context_private.hh"
+#include "gpu_drawlist_private.hh"
+
+namespace blender {
+namespace gpu {
class GPUBackend {
public:
virtual ~GPUBackend(){};
+ static GPUBackend *get(void);
+
virtual GPUContext *context_alloc(void *ghost_window) = 0;
+ virtual DrawList *drawlist_alloc(int list_length) = 0;
};
-GPUBackend *gpu_backend_get(void);
+} // namespace gpu
+} // namespace blender