Cleanup: use doxy sections for wm_draw.c
This commit is contained in:
parent
9b0d72aa3d
commit
2d39e46f84
|
@ -73,7 +73,9 @@
|
|||
# include "BKE_subsurf.h"
|
||||
#endif
|
||||
|
||||
/* ******************* paint cursor *************** */
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Draw Paint Cursor
|
||||
* \{ */
|
||||
|
||||
static void wm_paintcursor_draw(bContext *C, ScrArea *sa, ARegion *region)
|
||||
{
|
||||
|
@ -116,6 +118,12 @@ static void wm_paintcursor_draw(bContext *C, ScrArea *sa, ARegion *region)
|
|||
}
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Utilities
|
||||
* \{ */
|
||||
|
||||
static bool wm_draw_region_stereo_set(Main *bmain,
|
||||
ScrArea *sa,
|
||||
ARegion *region,
|
||||
|
@ -184,8 +192,6 @@ static bool wm_draw_region_stereo_set(Main *bmain,
|
|||
return false;
|
||||
}
|
||||
|
||||
/* ********************* drawing ****************** */
|
||||
|
||||
static void wm_area_mark_invalid_backbuf(ScrArea *sa)
|
||||
{
|
||||
if (sa->spacetype == SPACE_VIEW3D) {
|
||||
|
@ -286,8 +292,13 @@ static bool wm_region_use_viewport(ScrArea *sa, ARegion *region)
|
|||
return wm_region_use_viewport_by_type(sa->spacetype, region->regiontype);
|
||||
}
|
||||
|
||||
/********************** draw all **************************/
|
||||
/* - reference method, draw all each time */
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Window Drawing (Draw All)
|
||||
*
|
||||
* Reference method, draw all each time.
|
||||
* \{ */
|
||||
|
||||
typedef struct WindowDrawCB {
|
||||
struct WindowDrawCB *next, *prev;
|
||||
|
@ -328,12 +339,16 @@ static void wm_draw_callbacks(wmWindow *win)
|
|||
}
|
||||
}
|
||||
|
||||
/************************* Region drawing. ********************************
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Region Drawing
|
||||
*
|
||||
* Each region draws into its own framebuffer, which is then blit on the
|
||||
* 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. */
|
||||
* so that for example VAOs can be shared between windows.
|
||||
* \{ */
|
||||
|
||||
static void wm_draw_region_buffer_free(ARegion *region)
|
||||
{
|
||||
|
@ -866,7 +881,11 @@ static void wm_draw_surface(bContext *C, wmSurface *surface)
|
|||
wm_surface_clear_drawable();
|
||||
}
|
||||
|
||||
/****************** main update call **********************/
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Main Update Call
|
||||
* \{ */
|
||||
|
||||
/* quick test to prevent changing window drawable */
|
||||
static bool wm_draw_update_test_window(Main *bmain, bContext *C, wmWindow *win)
|
||||
|
@ -1042,6 +1061,8 @@ void WM_redraw_windows(bContext *C)
|
|||
CTX_wm_region_set(C, ar_prev);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Region Viewport Drawing
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue