Blender  V3.3
ED_view3d_offscreen.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "DNA_object_enums.h"
11 #include "DNA_view3d_types.h"
12 
13 #include "IMB_imbuf_types.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* ********* exports for space_view3d/ module for offscreen rendering ********** */
20 struct ARegion;
21 struct Depsgraph;
22 struct GPUOffScreen;
23 struct GPUViewport;
24 struct Scene;
25 struct View3D;
26 struct View3DShading;
27 
29  const struct Scene *scene,
30  eDrawType drawtype,
31  struct View3D *v3d,
32  struct ARegion *region,
33  int winx,
34  int winy,
35  const float viewmat[4][4],
36  const float winmat[4][4],
37  bool is_image_render,
38  bool draw_background,
39  const char *viewname,
40  bool do_color_management,
41  bool restore_rv3d_mats,
42  struct GPUOffScreen *ofs,
43  struct GPUViewport *viewport);
49  struct Scene *scene,
50  struct View3DShading *shading_override,
51  eDrawType drawtype,
52  int object_type_exclude_viewport_override,
53  int object_type_exclude_select_override,
54  int winx,
55  int winy,
56  unsigned int draw_flags,
57  const float viewmat[4][4],
58  const float winmat[4][4],
59  float clip_start,
60  float clip_end,
61  bool is_xr_surface,
62  bool is_image_render,
63  bool draw_background,
64  const char *viewname,
65  bool do_color_management,
66  struct GPUOffScreen *ofs,
67  struct GPUViewport *viewport);
68 
76  struct Scene *scene,
77  eDrawType drawtype,
78  struct View3D *v3d,
79  struct 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  struct GPUOffScreen *ofs,
87  char err_out[256]);
97  struct Scene *scene,
98  struct View3DShading *shading_override,
99  eDrawType drawtype,
100  struct Object *camera,
101  int width,
102  int height,
103  eImBufFlags imbuf_flags,
104  eV3DOffscreenDrawFlag draw_flags,
105  int alpha_mode,
106  const char *viewname,
107  struct GPUOffScreen *ofs,
108  char err_out[256]);
109 
110 #ifdef __cplusplus
111 }
112 #endif
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
eDrawType
eV3DOffscreenDrawFlag
struct ImBuf * ED_view3d_draw_offscreen_imbuf(struct Depsgraph *depsgraph, struct Scene *scene, eDrawType drawtype, struct View3D *v3d, struct ARegion *region, int sizex, int sizey, eImBufFlags imbuf_flag, int alpha_mode, const char *viewname, bool restore_rv3d_mats, struct GPUOffScreen *ofs, char err_out[256])
Definition: view3d_draw.c:1831
struct ImBuf * ED_view3d_draw_offscreen_imbuf_simple(struct Depsgraph *depsgraph, struct Scene *scene, struct View3DShading *shading_override, eDrawType drawtype, struct Object *camera, int width, int height, eImBufFlags imbuf_flags, eV3DOffscreenDrawFlag draw_flags, int alpha_mode, const char *viewname, struct GPUOffScreen *ofs, char err_out[256])
Definition: view3d_draw.c:1980
void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph, const struct Scene *scene, eDrawType drawtype, struct View3D *v3d, struct 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, struct GPUOffScreen *ofs, struct GPUViewport *viewport)
void ED_view3d_draw_offscreen_simple(struct Depsgraph *depsgraph, struct Scene *scene, struct 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, struct GPUOffScreen *ofs, struct GPUViewport *viewport)
Definition: view3d_draw.c:1723
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
Contains defines and structs used throughout the imbuf module.
eImBufFlags
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between camera
Scene scene
const Depsgraph * depsgraph
static void draw_background(const rcti *rect)
Definition: time_scrub_ui.c:48