diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-07 18:00:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-08 02:16:40 +0300 |
commit | 1dd737759639c63d3279be774202585de778dac5 (patch) | |
tree | b0b666aa69477ee7eb0cc2b5a379522bd75d1a62 /source/blender/gpu/CMakeLists.txt | |
parent | 0ccf3f89d2e2389d433d1ab682ad04310a9b19ae (diff) |
GPUBackend: Add new GPUBackend object to manage GL object allocations
This just set a global object responsible for allocating new objects
in a thread safe way without needing any GPUContext bound to this
thread.
This also introduce the GLContext which will contain all the GL related
functions for the current context.
Diffstat (limited to 'source/blender/gpu/CMakeLists.txt')
-rw-r--r-- | source/blender/gpu/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 4e9b4a5b313..6ee992e5726 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -28,6 +28,8 @@ endif() set(INC . + intern + opengl ../blenkernel ../blenlib ../bmesh @@ -86,6 +88,8 @@ set(SRC intern/gpu_vertex_format.cc intern/gpu_viewport.c + opengl/gl_context.cc + GPU_attr_binding.h GPU_batch.h GPU_batch_presets.h @@ -117,6 +121,7 @@ set(SRC GPU_viewport.h intern/gpu_attr_binding_private.h + intern/gpu_backend.hh intern/gpu_batch_private.h intern/gpu_codegen.h intern/gpu_context_private.h @@ -128,6 +133,9 @@ set(SRC intern/gpu_select_private.h intern/gpu_shader_private.h intern/gpu_vertex_format_private.h + + opengl/gl_backend.hh + opengl/gl_context.hh ) set(LIB |