|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | wmSurface |
Functions | |
WM-Surface | |
Container to manage painting in an off-screen context. | |
| void | wm_surface_add (wmSurface *surface) |
| void | wm_surface_remove (wmSurface *surface) |
| void | wm_surfaces_free () |
| void | wm_surfaces_iter (bContext *C, void(*cb)(bContext *, wmSurface *)) |
| void | wm_surfaces_do_depsgraph (bContext *C) |
| void | wm_surface_make_drawable (wmSurface *surface) |
| void | wm_surface_clear_drawable () |
| void | wm_surface_set_drawable (wmSurface *surface, bool activate) |
| void | wm_surface_reset_drawable () |
| void wm_surface_add | ( | wmSurface * | surface | ) |
Definition at line 99 of file wm_surface.cc.
References BLI_addtail(), and global_surface_list.
Referenced by wm_xr_session_gpu_binding_context_create().
| void wm_surface_clear_drawable | ( | ) |
Definition at line 49 of file wm_surface.cc.
References wmSurface::deactivate, g_drawable, GPU_context_active_set(), wmSurface::system_gpu_context, and WM_system_gpu_context_release().
Referenced by wm_draw_surface(), wm_surface_make_drawable(), wm_surface_remove(), and wm_surface_reset_drawable().
| void wm_surface_make_drawable | ( | wmSurface * | surface | ) |
Definition at line 78 of file wm_surface.cc.
References BLI_assert, g_drawable, GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), wm_surface_clear_drawable(), and wm_surface_set_drawable().
Referenced by wm_draw_surface(), and wm_surface_remove().
| void wm_surface_remove | ( | wmSurface * | surface | ) |
Definition at line 104 of file wm_surface.cc.
References BLI_remlink(), global_surface_list, MEM_freeN(), wm_surface_clear_drawable(), and wm_surface_make_drawable().
Referenced by wm_surfaces_free(), and wm_xr_session_gpu_binding_context_destroy().
| void wm_surface_reset_drawable | ( | ) |
Definition at line 88 of file wm_surface.cc.
References BLI_assert, BLI_thread_is_main(), g_drawable, GPU_framebuffer_active_get(), GPU_framebuffer_back_get(), wm_surface_clear_drawable(), and wm_surface_set_drawable().
| void wm_surface_set_drawable | ( | wmSurface * | surface, |
| bool | activate ) |
Definition at line 63 of file wm_surface.cc.
References activate(), wmSurface::activate, BLI_assert, ELEM, g_drawable, GPU_context_active_set(), and WM_system_gpu_context_activate().
Referenced by wm_surface_make_drawable(), and wm_surface_reset_drawable().
| void wm_surfaces_do_depsgraph | ( | bContext * | C | ) |
Definition at line 44 of file wm_surface.cc.
References wm_surface_do_depsgraph_fn(), and wm_surfaces_iter().
Referenced by wm_event_do_depsgraph().
| void wm_surfaces_free | ( | ) |
Definition at line 114 of file wm_surface.cc.
References BLI_assert, BLI_listbase_is_empty(), global_surface_list, LISTBASE_FOREACH_MUTABLE, and wm_surface_remove().
Referenced by WM_exit_ex().
Definition at line 29 of file wm_surface.cc.
References global_surface_list, and LISTBASE_FOREACH_MUTABLE.
Referenced by wm_draw_update(), and wm_surfaces_do_depsgraph().