1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2016, Blender Foundation.
17  */
18 
19 /** \file
20  * \ingroup draw
21  */
22 
23 #pragma once
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /* Buffer and textures used by the viewport by default */
30 typedef struct DefaultFramebufferList {
31   struct GPUFrameBuffer *default_fb;
32   struct GPUFrameBuffer *overlay_fb;
33   struct GPUFrameBuffer *in_front_fb;
34   struct GPUFrameBuffer *color_only_fb;
35   struct GPUFrameBuffer *depth_only_fb;
36   struct GPUFrameBuffer *overlay_only_fb;
37   struct GPUFrameBuffer *stereo_comp_fb;
38 } DefaultFramebufferList;
39 
40 typedef struct DefaultTextureList {
41   struct GPUTexture *color;
42   struct GPUTexture *color_overlay;
43   struct GPUTexture *color_stereo;
44   struct GPUTexture *color_overlay_stereo;
45   struct GPUTexture *depth;
46   struct GPUTexture *depth_in_front;
47 } DefaultTextureList;
48 
49 #ifdef __cplusplus
50 }
51 #endif
52