Blender V5.3
wm_draw.hh File Reference

Go to the source code of this file.

Classes

struct  blender::wmDrawBuffer

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Functions

Main Update Call
void blender::wm_draw_update (bContext *C)
void blender::wm_draw_region_clear (wmWindow *win, ARegion *)
void blender::wm_draw_region_test (bContext *C, ScrArea *area, ARegion *region)
Region Drawing

Each region draws into its own frame-buffer, which is then blit on the window draw buffer. This helps with fast redrawing if only some regions change. It also means we can share a single context for multiple windows, so that for example VAOs can be shared between windows.

void blender::wm_draw_region_blend (ARegion *region, int view, bool blend)
gpu::Texture * blender::wm_draw_region_texture (ARegion *region, int view)