blob: 6061ed3296f22c598bbdf1e4ca54785ae504885b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2007 Blender Foundation. All rights reserved. */
/** \file
* \ingroup wm
*/
#pragma once
struct GPUOffScreen;
struct GPUTexture;
struct GPUViewport;
#ifdef __cplusplus
extern "C" {
#endif
typedef struct wmDrawBuffer {
struct GPUOffScreen *offscreen;
struct GPUViewport *viewport;
bool stereo;
int bound_view;
} wmDrawBuffer;
struct ARegion;
struct ScrArea;
struct bContext;
struct wmWindow;
/* wm_draw.c */
void wm_draw_update(struct bContext *C);
void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region);
void wm_draw_region_blend(struct ARegion *region, int view, bool blend);
void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region);
struct GPUTexture *wm_draw_region_texture(struct ARegion *region, int view);
#ifdef __cplusplus
}
#endif
|