Blender  V3.3
wm_draw.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2007 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct GPUOffScreen;
11 struct GPUTexture;
12 struct GPUViewport;
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct wmDrawBuffer {
21  bool stereo;
24 
25 struct ARegion;
26 struct ScrArea;
27 struct bContext;
28 struct wmWindow;
29 
30 /* wm_draw.c */
31 
32 void wm_draw_update(struct bContext *C);
33 void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region);
34 void wm_draw_region_blend(struct ARegion *region, int view, bool blend);
35 void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region);
36 
37 struct GPUTexture *wm_draw_region_texture(struct ARegion *region, int view);
38 
39 #ifdef __cplusplus
40 }
41 #endif
static AppView * view
struct GPUTexture GPUTexture
Definition: GPU_texture.h:17
#define C
Definition: RandGen.cpp:25
static void area(int d1, int d2, int e1, int e2, float weights[2])
int bound_view
Definition: wm_draw.h:22
struct GPUViewport * viewport
Definition: wm_draw.h:20
bool stereo
Definition: wm_draw.h:21
struct GPUOffScreen * offscreen
Definition: wm_draw.h:19
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:750
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:763
void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition: wm_draw.c:1368
void wm_draw_update(struct bContext *C)
Definition: wm_draw.c:1302