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 * The Original Code is Copyright (C) 2007 Blender Foundation. 17 * All rights reserved. 18 */ 19 20 /** \file 21 * \ingroup wm 22 */ 23 24 #pragma once 25 26 struct GPUOffScreen; 27 struct GPUTexture; 28 struct GPUViewport; 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 typedef struct wmDrawBuffer { 35 struct GPUOffScreen *offscreen; 36 struct GPUViewport *viewport; 37 bool stereo; 38 int bound_view; 39 } wmDrawBuffer; 40 41 struct ARegion; 42 struct ScrArea; 43 struct bContext; 44 struct wmWindow; 45 46 /* wm_draw.c */ 47 void wm_draw_update(struct bContext *C); 48 void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region); 49 void wm_draw_region_blend(struct ARegion *region, int view, bool blend); 50 void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region); 51 52 struct GPUTexture *wm_draw_region_texture(struct ARegion *region, int view); 53 54 #ifdef __cplusplus 55 } 56 #endif 57