Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_fill.c
| Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | static bool gp_render_offscreen(tGPDfill *tgpf) | ||||
| GPUOffScreen *offscreen = GPU_offscreen_create( | GPUOffScreen *offscreen = GPU_offscreen_create( | ||||
| tgpf->sizex, tgpf->sizey, 0, true, false, err_out); | tgpf->sizex, tgpf->sizey, 0, true, false, err_out); | ||||
| if (offscreen == NULL) { | if (offscreen == NULL) { | ||||
| printf("GPencil - Fill - Unable to create fill buffer\n"); | printf("GPencil - Fill - Unable to create fill buffer\n"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| GPU_offscreen_bind(offscreen, true); | GPU_offscreen_bind(offscreen, true); | ||||
| uint flag = IB_rect | IB_rectfloat; | eImBufFlags flag = IB_rect | IB_rectfloat; | ||||
| ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 32, flag); | ImBuf *ibuf = IMB_allocImBuf(tgpf->sizex, tgpf->sizey, 32, flag); | ||||
| rctf viewplane; | rctf viewplane; | ||||
| float clip_start, clip_end; | float clip_start, clip_end; | ||||
| is_ortho = ED_view3d_viewplane_get(tgpf->depsgraph, | is_ortho = ED_view3d_viewplane_get(tgpf->depsgraph, | ||||
| tgpf->v3d, | tgpf->v3d, | ||||
| tgpf->rv3d, | tgpf->rv3d, | ||||
| ▲ Show 20 Lines • Show All 1,161 Lines • Show Last 20 Lines | |||||