Blender V5.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
8
9#pragma once
10
11#include "DNA_object_enums.h"
12#include "DNA_view3d_types.h"
13
14#include "IMB_imbuf_types.hh"
15
16namespace blender {
17
18/* ********* exports for space_view3d/ module for offscreen rendering ********** */
19struct ARegion;
20struct bContext;
21struct Depsgraph;
22struct GPUOffScreen;
23struct GPUViewport;
24struct Scene;
25struct View3D;
26struct View3DShading;
27
28void ED_view3d_draw_offscreen(Depsgraph *depsgraph,
29 const Scene *scene,
30 eDrawType drawtype,
31 View3D *v3d,
32 ARegion *region,
33 bContext *context,
34 int winx,
35 int winy,
36 const float viewmat[4][4],
37 const float winmat[4][4],
38 bool is_image_render,
39 bool draw_background,
40 const char *viewname,
41 bool do_color_management,
42 bool restore_rv3d_mats,
43 GPUOffScreen *ofs,
44 GPUViewport *viewport);
49void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph,
50 Scene *scene,
51 View3DShading *shading_override,
52 bContext *context,
53 eDrawType drawtype,
54 int object_type_exclude_viewport_override,
55 int object_type_exclude_select_override,
56 int winx,
57 int winy,
58 unsigned int draw_flags,
59 const float viewmat[4][4],
60 const float winmat[4][4],
61 float clip_start,
62 float clip_end,
63 float xr_vignette_aperture,
64 bool is_xr_surface,
65 bool is_image_render,
66 bool draw_background,
67 const char *viewname,
68 bool do_color_management,
69 Object *camera_override,
70 GPUOffScreen *ofs,
71 GPUViewport *viewport);
72
86ImBuf *ED_view3d_draw_offscreen_imbuf(Depsgraph *depsgraph,
87 Scene *scene,
88 eDrawType drawtype,
89 View3D *v3d,
90 ARegion *region,
91 int sizex,
92 int sizey,
93 ImBufFlags imbuf_flag,
94 int alpha_mode,
95 const char *viewname,
96 bool restore_rv3d_mats,
97 GPUOffScreen *ofs,
98 GPUViewport *viewport,
99 bool use_camera_view_bounds,
100 char err_out[256]);
112ImBuf *ED_view3d_draw_offscreen_imbuf_simple(Depsgraph *depsgraph,
113 Scene *scene,
114 View3DShading *shading_override,
115 eDrawType drawtype,
116 Object *camera,
117 int width,
118 int height,
119 ImBufFlags imbuf_flags,
120 eV3DOffscreenDrawFlag draw_flags,
121 int alpha_mode,
122 const char *viewname,
123 GPUOffScreen *ofs,
124 GPUViewport *viewport,
125 char err_out[256]);
126
133
134} // namespace blender
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
BMesh Iterators.
ImBuf * ED_view3d_draw_offscreen_imbuf(Depsgraph *depsgraph, Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, int sizex, int sizey, ImBufFlags imbuf_flag, int alpha_mode, const char *viewname, bool restore_rv3d_mats, GPUOffScreen *ofs, GPUViewport *viewport, bool use_camera_view_bounds, char err_out[256])
bool ED_view3d_draw_offscreen_check_nested()
void ED_view3d_draw_offscreen_simple(Depsgraph *depsgraph, Scene *scene, View3DShading *shading_override, bContext *context, 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, float xr_vignette_aperture, bool is_xr_surface, bool is_image_render, bool draw_background, const char *viewname, bool do_color_management, Object *camera_override, 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, ImBufFlags imbuf_flags, eV3DOffscreenDrawFlag draw_flags, int alpha_mode, const char *viewname, GPUOffScreen *ofs, GPUViewport *viewport, char err_out[256])
void ED_view3d_draw_offscreen(Depsgraph *depsgraph, const Scene *scene, eDrawType drawtype, View3D *v3d, ARegion *region, bContext *context, 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)