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:
authorJeroen Bakker <jeroen@blender.org>2020-02-25 09:47:35 +0300
committerJeroen Bakker <jeroen@blender.org>2020-02-25 09:47:35 +0300
commitae3263e52532997a2149dfff67cec2dbcc9e465a (patch)
treea12f96a261f4ace3c25033db4dae69bc42f515d1 /source/blender/draw/DRW_engine.h
parent9e45468835bacca145028dafad9be33accad5bed (diff)
DrawEngine: Clean up
Put DefaultFramebufferList and DefaultTextureList into an own header file. These structs were private, but also used by the window manager and gpu package. The previous implementation we needed to keep these structs in sync.
Diffstat (limited to 'source/blender/draw/DRW_engine.h')
-rw-r--r--source/blender/draw/DRW_engine.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/source/blender/draw/DRW_engine.h b/source/blender/draw/DRW_engine.h
index 647d8a0841f..2462603632f 100644
--- a/source/blender/draw/DRW_engine.h
+++ b/source/blender/draw/DRW_engine.h
@@ -48,23 +48,7 @@ struct bContext;
struct rcti;
#include "DNA_object_enums.h"
-
-/* Buffer and textures used by the viewport by default */
-typedef struct DefaultFramebufferList {
- struct GPUFrameBuffer *default_fb;
- struct GPUFrameBuffer *overlay_fb;
- struct GPUFrameBuffer *in_front_fb;
- struct GPUFrameBuffer *color_only_fb;
- struct GPUFrameBuffer *depth_only_fb;
- struct GPUFrameBuffer *overlay_only_fb;
-} DefaultFramebufferList;
-
-typedef struct DefaultTextureList {
- struct GPUTexture *color;
- struct GPUTexture *color_overlay;
- struct GPUTexture *depth;
- struct GPUTexture *depth_in_front;
-} DefaultTextureList;
+#include "DRW_engine_types.h"
void DRW_engines_register(void);
void DRW_engines_free(void);