Blender V4.3
ED_view3d_offscreen.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "DNA_object_enums.h"
12#include "DNA_view3d_types.h"
13
14#include "IMB_imbuf_types.hh"
15
16/* ********* exports for space_view3d/ module for offscreen rendering ********** */
17struct ARegion;
18struct Depsgraph;
19struct GPUOffScreen;
20struct GPUViewport;
21struct Scene;
22struct View3D;
23struct View3DShading;
24
26 const Scene *scene,
27 eDrawType drawtype,
28 View3D *v3d,
29 ARegion *region,
30 int winx,
31 int winy,
32 const float viewmat[4][4],
33 const float winmat[4][4],
34 bool is_image_render,
35 bool draw_background,
36 const char *viewname,
37 bool do_color_management,
38 bool restore_rv3d_mats,
39 GPUOffScreen *ofs,
40 GPUViewport *viewport);
46 Scene *scene,
47 View3DShading *shading_override,
48 eDrawType drawtype,
49 int object_type_exclude_viewport_override,
50 int object_type_exclude_select_override,
51 int winx,
52 int winy,
53 unsigned int draw_flags,
54 const float viewmat[4][4],
55 const float winmat[4][4],
56 float clip_start,
57 float clip_end,
58 bool is_xr_surface,
59 bool is_image_render,
60 bool draw_background,
61 const char *viewname,
62 bool do_color_management,
63 GPUOffScreen *ofs,
64 GPUViewport *viewport);
65
76 Scene *scene,
77 eDrawType drawtype,
78 View3D *v3d,
79 ARegion *region,
80 int sizex,
81 int sizey,
82 eImBufFlags imbuf_flag,
83 int alpha_mode,
84 const char *viewname,
85 bool restore_rv3d_mats,
86 GPUOffScreen *ofs,
87 GPUViewport *viewport,
88 char err_out[256]);
101 Scene *scene,
102 View3DShading *shading_override,
103 eDrawType drawtype,
104 Object *camera,
105 int width,
106 int height,
107 eImBufFlags imbuf_flags,
108 eV3DOffscreenDrawFlag draw_flags,
109 int alpha_mode,
110 const char *viewname,
111 GPUOffScreen *ofs,
112 GPUViewport *viewport,
113 char err_out[256]);
114
eDrawType
eV3DOffscreenDrawFlag
ImBuf * ED_view3d_draw_offscreen_imbuf(Depsgraph *depsgraph, Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, int sizex, int sizey, eImBufFlags imbuf_flag, int alpha_mode, const char *viewname, bool restore_rv3d_mats, GPUOffScreen *ofs, GPUViewport *viewport, char err_out[256])
bool ED_view3d_draw_offscreen_check_nested()
void ED_view3d_draw_offscreen(Depsgraph *depsgraph, const Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, int winx, int winy, const float viewmat[4][4], const float winmat[4][4], bool is_image_render, bool draw_background, const char *viewname, bool do_color_management, bool restore_rv3d_mats, GPUOffScreen *ofs, GPUViewport *viewport)
ImBuf * ED_view3d_draw_offscreen_imbuf_simple(Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, eDrawType drawtype, Object *camera, int width, int height, eImBufFlags imbuf_flags, eV3DOffscreenDrawFlag draw_flags, int alpha_mode, const char *viewname, GPUOffScreen *ofs, GPUViewport *viewport, char err_out[256])
void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, eDrawType drawtype, int object_type_exclude_viewport_override, int object_type_exclude_select_override, int winx, int winy, unsigned int draw_flags, const float viewmat[4][4], const float winmat[4][4], float clip_start, float clip_end, bool is_xr_surface, bool is_image_render, bool draw_background, const char *viewname, bool do_color_management, GPUOffScreen *ofs, GPUViewport *viewport)
Contains defines and structs used throughout the imbuf module.
eImBufFlags
const Depsgraph * depsgraph
static void draw_background()