Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_view3d_offscreen.h
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | void ED_view3d_draw_offscreen(struct Depsgraph *depsgraph, | ||||
| const float winmat[4][4], | const float winmat[4][4], | ||||
| bool is_image_render, | bool is_image_render, | ||||
| bool draw_background, | bool draw_background, | ||||
| const char *viewname, | const char *viewname, | ||||
| const bool do_color_management, | const bool do_color_management, | ||||
| const bool restore_rv3d_mats, | const bool restore_rv3d_mats, | ||||
| struct GPUOffScreen *ofs, | struct GPUOffScreen *ofs, | ||||
| struct GPUViewport *viewport); | struct GPUViewport *viewport); | ||||
| /** | |||||
| * Creates own fake 3d views (wrapping #ED_view3d_draw_offscreen). Similar too | |||||
| * #ED_view_draw_offscreen_imbuf_simple, but takes view/projection matrices as arguments. | |||||
| */ | |||||
| void ED_view3d_draw_offscreen_simple(struct Depsgraph *depsgraph, | void ED_view3d_draw_offscreen_simple(struct Depsgraph *depsgraph, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct View3DShading *shading_override, | struct View3DShading *shading_override, | ||||
| eDrawType drawtype, | eDrawType drawtype, | ||||
| int winx, | int winx, | ||||
| int winy, | int winy, | ||||
| unsigned int draw_flags, | unsigned int draw_flags, | ||||
| const float viewmat[4][4], | const float viewmat[4][4], | ||||
| const float winmat[4][4], | const float winmat[4][4], | ||||
| float clip_start, | float clip_start, | ||||
| float clip_end, | float clip_end, | ||||
| bool is_xr_surface, | bool is_xr_surface, | ||||
| bool is_image_render, | bool is_image_render, | ||||
| bool draw_background, | bool draw_background, | ||||
| const char *viewname, | const char *viewname, | ||||
| const bool do_color_management, | const bool do_color_management, | ||||
| struct GPUOffScreen *ofs, | struct GPUOffScreen *ofs, | ||||
| struct GPUViewport *viewport); | struct GPUViewport *viewport); | ||||
| /** | |||||
| * Utility func for ED_view3d_draw_offscreen | |||||
| * | |||||
| * \param ofs: Optional off-screen buffer, can be NULL. | |||||
| * (avoids re-creating when doing multiple GL renders). | |||||
| */ | |||||
| struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Depsgraph *depsgraph, | struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Depsgraph *depsgraph, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| eDrawType drawtype, | eDrawType drawtype, | ||||
| struct View3D *v3d, | struct View3D *v3d, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| int sizex, | int sizex, | ||||
| int sizey, | int sizey, | ||||
| eImBufFlags imbuf_flag, | eImBufFlags imbuf_flag, | ||||
| int alpha_mode, | int alpha_mode, | ||||
| const char *viewname, | const char *viewname, | ||||
| const bool restore_rv3d_mats, | const bool restore_rv3d_mats, | ||||
| struct GPUOffScreen *ofs, | struct GPUOffScreen *ofs, | ||||
| char err_out[256]); | char err_out[256]); | ||||
| /** | |||||
| * Creates own fake 3d views (wrapping #ED_view3d_draw_offscreen_imbuf) | |||||
| * | |||||
| * \param ofs: Optional off-screen buffer can be NULL. | |||||
| * (avoids re-creating when doing multiple GL renders). | |||||
| * | |||||
| * \note used by the sequencer | |||||
| */ | |||||
| struct ImBuf *ED_view3d_draw_offscreen_imbuf_simple(struct Depsgraph *depsgraph, | struct ImBuf *ED_view3d_draw_offscreen_imbuf_simple(struct Depsgraph *depsgraph, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct View3DShading *shading_override, | struct View3DShading *shading_override, | ||||
| eDrawType drawtype, | eDrawType drawtype, | ||||
| struct Object *camera, | struct Object *camera, | ||||
| int width, | int width, | ||||
| int height, | int height, | ||||
| eImBufFlags imbuf_flags, | eImBufFlags imbuf_flags, | ||||
| Show All 9 Lines | |||||