Blender
V2.93
source
blender
windowmanager
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
{
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
view
static AppView * view
Definition:
FRS_freestyle.cpp:77
GPUTexture
struct GPUTexture GPUTexture
Definition:
GPU_texture.h:33
C
#define C
Definition:
RandGen.cpp:39
blender::compositor::area
static void area(int d1, int d2, int e1, int e2, float weights[2])
Definition:
COM_SMAAOperation.cc:123
ARegion
Definition:
DNA_screen_types.h:439
GPUOffScreen
Definition:
gpu_framebuffer.cc:523
GPUViewport
Definition:
gpu_viewport.c:85
ScrArea
Definition:
DNA_screen_types.h:360
bContext
Definition:
context.c:69
wmDrawBuffer
Definition:
wm_draw.h:34
wmDrawBuffer::bound_view
int bound_view
Definition:
wm_draw.h:38
wmDrawBuffer::viewport
struct GPUViewport * viewport
Definition:
wm_draw.h:36
wmDrawBuffer::stereo
bool stereo
Definition:
wm_draw.h:37
wmDrawBuffer::offscreen
struct GPUOffScreen * offscreen
Definition:
wm_draw.h:35
wmWindow
Definition:
DNA_windowmanager_types.h:228
blend
static int blend(const Tex *tex, const float texvec[3], TexResult *texres)
Definition:
texture_procedural.c:108
wm_draw_region_texture
struct GPUTexture * wm_draw_region_texture(struct ARegion *region, int view)
Definition:
wm_draw.c:538
wm_draw_region_clear
void wm_draw_region_clear(struct wmWindow *win, struct ARegion *region)
wmDrawBuffer
struct wmDrawBuffer wmDrawBuffer
wm_draw_region_blend
void wm_draw_region_blend(struct ARegion *region, int view, bool blend)
Definition:
wm_draw.c:551
wm_draw_region_test
void wm_draw_region_test(struct bContext *C, struct ScrArea *area, struct ARegion *region)
Definition:
wm_draw.c:1094
wm_draw_update
void wm_draw_update(struct bContext *C)
Definition:
wm_draw.c:1033
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1