Cleanup: consistent arg order

This commit is contained in:
2017-05-03 03:06:37 +10:00
parent 3f567535da
commit 075638f85c
4 changed files with 11 additions and 12 deletions

View File

@@ -67,14 +67,14 @@ void DRW_draw_view(const struct bContext *C);
void DRW_draw_render_loop(
struct Depsgraph *graph,
struct View3D *v3d, struct ARegion *ar);
struct ARegion *ar, struct View3D *v3d);
void DRW_draw_render_loop_offscreen(
struct Depsgraph *graph,
struct View3D *v3d, struct ARegion *ar,
struct ARegion *ar, struct View3D *v3d,
struct GPUOffScreen *ofs);
void DRW_draw_select_loop(
struct Depsgraph *graph,
struct View3D *v3d, struct ARegion *ar,
struct ARegion *ar, struct View3D *v3d,
bool use_obedit_skip, bool use_nearest, const struct rcti *rect);
void DRW_draw_depth_loop(
struct Depsgraph *graph,

View File

@@ -2180,12 +2180,11 @@ void DRW_draw_view(const bContext *C)
{
struct Depsgraph *graph = CTX_data_depsgraph(C);
ARegion *ar = CTX_wm_region(C);
// RegionView3D *rv3d = ar->regiondata;
View3D *v3d = CTX_wm_view3d(C);
DST.draw_ctx.evil_C = C;
DRW_draw_render_loop(graph, v3d, ar);
DRW_draw_render_loop(graph, ar, v3d);
}
/**
@@ -2195,7 +2194,7 @@ void DRW_draw_view(const bContext *C)
*/
void DRW_draw_render_loop(
struct Depsgraph *graph,
View3D *v3d, ARegion *ar)
ARegion *ar, View3D *v3d)
{
Scene *scene = DAG_get_scene(graph);
SceneLayer *sl = DAG_get_scene_layer(graph);
@@ -2280,7 +2279,7 @@ void DRW_draw_render_loop(
void DRW_draw_render_loop_offscreen(
struct Depsgraph *graph,
View3D *v3d, ARegion *ar, GPUOffScreen *ofs)
ARegion *ar, View3D *v3d, GPUOffScreen *ofs)
{
RegionView3D *rv3d = ar->regiondata;
@@ -2293,7 +2292,7 @@ void DRW_draw_render_loop_offscreen(
DST.draw_ctx.evil_C = NULL;
DRW_draw_render_loop(graph, v3d, ar);
DRW_draw_render_loop(graph, ar, v3d);
/* restore */
{
@@ -2314,7 +2313,7 @@ void DRW_draw_render_loop_offscreen(
*/
void DRW_draw_select_loop(
struct Depsgraph *graph,
View3D *v3d, ARegion *ar,
ARegion *ar, View3D *v3d,
bool UNUSED(use_obedit_skip), bool UNUSED(use_nearest), const rcti *rect)
{
Scene *scene = DAG_get_scene(graph);

View File

@@ -1821,7 +1821,7 @@ void ED_view3d_draw_offscreen(
}
else {
/* XXX, should take depsgraph as arg */
DRW_draw_render_loop_offscreen(scene->depsgraph, v3d, ar, ofs);
DRW_draw_render_loop_offscreen(scene->depsgraph, ar, v3d, ofs);
}
/* post process */

View File

@@ -1191,7 +1191,7 @@ int view3d_opengl_select(
else
#else
{
DRW_draw_select_loop(graph, v3d, ar, use_obedit_skip, use_nearest, &rect);
DRW_draw_select_loop(graph, ar, v3d, use_obedit_skip, use_nearest, &rect);
}
#endif /* WITH_OPENGL_LEGACY */
@@ -1208,7 +1208,7 @@ int view3d_opengl_select(
else
#else
{
DRW_draw_select_loop(graph, v3d, ar, use_obedit_skip, use_nearest, &rect);
DRW_draw_select_loop(graph, ar, v3d, use_obedit_skip, use_nearest, &rect);
}
#endif /* WITH_OPENGL_LEGACY */