Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mask/mask_draw.c
| Show First 20 Lines • Show All 680 Lines • ▼ Show 20 Lines | static float *mask_rasterize(Mask *mask, const int width, const int height) | ||||
| BKE_maskrasterize_buffer(handle, width, height, buffer); | BKE_maskrasterize_buffer(handle, width, height, buffer); | ||||
| /* Free memory. */ | /* Free memory. */ | ||||
| BKE_maskrasterize_handle_free(handle); | BKE_maskrasterize_handle_free(handle); | ||||
| return buffer; | return buffer; | ||||
| } | } | ||||
| /* sets up the opengl context. | |||||
| * width, height are to match the values from ED_mask_get_size() */ | |||||
| void ED_mask_draw_region( | void ED_mask_draw_region( | ||||
| Depsgraph *depsgraph, | Depsgraph *depsgraph, | ||||
| Mask *mask_, | Mask *mask_, | ||||
| ARegion *region, | ARegion *region, | ||||
| const char draw_flag, | const char draw_flag, | ||||
| const char draw_type, | const char draw_type, | ||||
| const eMaskOverlayMode overlay_mode, | const eMaskOverlayMode overlay_mode, | ||||
| /* convert directly into aspect corrected vars */ | /* convert directly into aspect corrected vars */ | ||||
| ▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines | |||||