Blender  V2.93
wm_draw.h
Go to the documentation of this file.
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 
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 {
37  bool stereo;
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
static AppView * view
struct GPUTexture GPUTexture
Definition: GPU_texture.h:33
#define C
Definition: RandGen.cpp:39
static void area(int d1, int d2, int e1, int e2, float weights[2])
int bound_view
Definition: wm_draw.h:38
struct GPUViewport * viewport
Definition: wm_draw.h:36
bool stereo
Definition: wm_draw.h:37
struct GPUOffScreen * offscreen
Definition: wm_draw.h:35
static int blend(const Tex *tex, const float texvec[3], TexResult *texres)
struct GPUTexture * wm_draw_region_texture(struct ARegion *region, int view)
Definition: wm_draw.c:538
void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region)
struct wmDrawBuffer wmDrawBuffer
void wm_draw_region_blend(struct ARegion *region, int view, bool blend)
Definition: wm_draw.c:551
void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: wm_draw.c:1094
void wm_draw_update(struct bContext *C)
Definition: wm_draw.c:1033