Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_surface.c
| Show All 39 Lines | |||||
| #include "wm_surface.h" | #include "wm_surface.h" | ||||
| static ListBase global_surface_list = {NULL, NULL}; | static ListBase global_surface_list = {NULL, NULL}; | ||||
| static wmSurface *g_drawable = NULL; | static wmSurface *g_drawable = NULL; | ||||
| void wm_surfaces_iter(bContext *C, void (*cb)(bContext *C, wmSurface *)) | void wm_surfaces_iter(bContext *C, void (*cb)(bContext *C, wmSurface *)) | ||||
| { | { | ||||
| for (wmSurface *surf = global_surface_list.first; surf; surf = surf->next) { | LISTBASE_FOREACH (wmSurface *, surf, &global_surface_list) { | ||||
| cb(C, surf); | cb(C, surf); | ||||
| } | } | ||||
| } | } | ||||
| void wm_surface_clear_drawable(void) | void wm_surface_clear_drawable(void) | ||||
| { | { | ||||
| if (g_drawable) { | if (g_drawable) { | ||||
| BLF_batch_reset(); | BLF_batch_reset(); | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||