Blender
V2.93
source
blender
draw
engines
image
image_private.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
* Copyright 2020, Blender Foundation.
17
*/
18
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
27
/* Forward declarations */
28
struct
GPUTexture
;
29
struct
ImBuf
;
30
struct
Image
;
31
32
/* *********** LISTS *********** */
33
34
/* GPUViewport.storage
35
* Is freed every time the viewport engine changes. */
36
typedef
struct
IMAGE_PassList
{
37
DRWPass
*
image_pass
;
38
}
IMAGE_PassList
;
39
40
typedef
struct
IMAGE_PrivateData
{
41
void
*
lock
;
42
struct
ImBuf
*
ibuf
;
43
struct
Image
*
image
;
44
struct
DRWView
*
view
;
45
46
struct
GPUTexture
*
texture
;
47
bool
owns_texture
;
48
}
IMAGE_PrivateData
;
49
50
typedef
struct
IMAGE_StorageList
{
51
IMAGE_PrivateData
*
pd
;
52
}
IMAGE_StorageList
;
53
54
typedef
struct
IMAGE_Data
{
55
void
*
engine_type
;
56
DRWViewportEmptyList
*
fbl
;
57
DRWViewportEmptyList
*
txl
;
58
IMAGE_PassList
*
psl
;
59
IMAGE_StorageList
*
stl
;
60
}
IMAGE_Data
;
61
62
/* image_shader.c */
63
GPUShader
*
IMAGE_shader_image_get
(
bool
is_tiled_image);
64
void
IMAGE_shader_library_ensure
(
void
);
65
void
IMAGE_shader_free
(
void
);
66
67
#ifdef __cplusplus
68
}
69
#endif
DRWViewportEmptyList
char DRWViewportEmptyList
Definition:
DRW_render.h:91
GPUShader
struct GPUShader GPUShader
Definition:
GPU_shader.h:33
GPUTexture
struct GPUTexture GPUTexture
Definition:
GPU_texture.h:33
Image
Definition:
imbuf/intern/dds/Image.h:36
IMAGE_shader_image_get
GPUShader * IMAGE_shader_image_get(bool is_tiled_image)
Definition:
image_shader.c:59
IMAGE_shader_library_ensure
void IMAGE_shader_library_ensure(void)
Definition:
image_shader.c:48
IMAGE_PassList
struct IMAGE_PassList IMAGE_PassList
IMAGE_PrivateData
struct IMAGE_PrivateData IMAGE_PrivateData
IMAGE_StorageList
struct IMAGE_StorageList IMAGE_StorageList
IMAGE_Data
struct IMAGE_Data IMAGE_Data
IMAGE_shader_free
void IMAGE_shader_free(void)
Definition:
image_shader.c:74
DRWPass
Definition:
draw_manager.h:364
DRWView
Definition:
draw_manager.h:403
IMAGE_Data
Definition:
image_private.h:54
IMAGE_Data::engine_type
void * engine_type
Definition:
image_private.h:55
IMAGE_Data::fbl
DRWViewportEmptyList * fbl
Definition:
image_private.h:56
IMAGE_Data::stl
IMAGE_StorageList * stl
Definition:
image_private.h:59
IMAGE_Data::txl
DRWViewportEmptyList * txl
Definition:
image_private.h:57
IMAGE_Data::psl
IMAGE_PassList * psl
Definition:
image_private.h:58
IMAGE_PassList
Definition:
image_private.h:36
IMAGE_PassList::image_pass
DRWPass * image_pass
Definition:
image_private.h:37
IMAGE_PrivateData
Definition:
image_private.h:40
IMAGE_PrivateData::lock
void * lock
Definition:
image_private.h:41
IMAGE_PrivateData::texture
struct GPUTexture * texture
Definition:
image_private.h:46
IMAGE_PrivateData::image
struct Image * image
Definition:
image_private.h:43
IMAGE_PrivateData::ibuf
struct ImBuf * ibuf
Definition:
image_private.h:42
IMAGE_PrivateData::owns_texture
bool owns_texture
Definition:
image_private.h:47
IMAGE_PrivateData::view
struct DRWView * view
Definition:
image_private.h:44
IMAGE_StorageList
Definition:
image_private.h:50
IMAGE_StorageList::pd
IMAGE_PrivateData * pd
Definition:
image_private.h:51
ImBuf
Definition:
IMB_imbuf_types.h:178
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1