diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-14 10:40:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-14 10:40:23 +0300 |
commit | 91837cd5b085b24a0342fe7daccf4ec6a629dc51 (patch) | |
tree | 82a343c149f3ac819e6e3b0187f96dc878eef7de /source/blender | |
parent | 3ee0723b7db79f782c5a6efad13d7eb43c2b017c (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/modes/edit_armature_mode.c | 2 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_curve_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_lattice_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_metaball_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_surface_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/edit_text_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_texture_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_vertex_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/paint_weight_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/particle_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/pose_mode.c | 17 | ||||
-rw-r--r-- | source/blender/draw/modes/sculpt_mode.c | 17 |
12 files changed, 156 insertions, 33 deletions
diff --git a/source/blender/draw/modes/edit_armature_mode.c b/source/blender/draw/modes/edit_armature_mode.c index f2f19eacf2d..d6193986c7f 100644 --- a/source/blender/draw/modes/edit_armature_mode.c +++ b/source/blender/draw/modes/edit_armature_mode.c @@ -104,11 +104,13 @@ static void EDIT_ARMATURE_draw_scene(void) DRW_draw_pass(psl->relationship); } +#if 0 void EDIT_ARMATURE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); //BKE_collection_engine_property_add_int(ces, "show_occlude_wire", false); } +#endif DrawEngineType draw_engine_edit_armature_type = { NULL, NULL, diff --git a/source/blender/draw/modes/edit_curve_mode.c b/source/blender/draw/modes/edit_curve_mode.c index d030a56fee2..49b48396613 100644 --- a/source/blender/draw/modes/edit_curve_mode.c +++ b/source/blender/draw/modes/edit_curve_mode.c @@ -110,14 +110,16 @@ static EDIT_CURVE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void EDIT_CURVE_engine_init(void) { - EDIT_CURVE_Data *vedata = DRW_viewport_engine_data_get("EditCurveMode"); + vedata = DRW_viewport_engine_data_get("EditCurveMode"); EDIT_CURVE_TextureList *txl = vedata->txl; EDIT_CURVE_FramebufferList *fbl = vedata->fbl; EDIT_CURVE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void EDIT_CURVE_cache_init(void) EDIT_CURVE_PassList *psl = vedata->psl; EDIT_CURVE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void EDIT_CURVE_cache_populate(Object *ob) EDIT_CURVE_PassList *psl = vedata->psl; EDIT_CURVE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void EDIT_CURVE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void EDIT_CURVE_cache_finish(void) { EDIT_CURVE_PassList *psl = vedata->psl; EDIT_CURVE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void EDIT_CURVE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void EDIT_CURVE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void EDIT_CURVE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void EDIT_CURVE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_edit_curve_type = { NULL, NULL, diff --git a/source/blender/draw/modes/edit_lattice_mode.c b/source/blender/draw/modes/edit_lattice_mode.c index 32c95db1574..e8bf1d92701 100644 --- a/source/blender/draw/modes/edit_lattice_mode.c +++ b/source/blender/draw/modes/edit_lattice_mode.c @@ -110,14 +110,16 @@ static EDIT_LATTICE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void EDIT_LATTICE_engine_init(void) { - EDIT_LATTICE_Data *vedata = DRW_viewport_engine_data_get("EditLatticeMode"); + vedata = DRW_viewport_engine_data_get("EditLatticeMode"); EDIT_LATTICE_TextureList *txl = vedata->txl; EDIT_LATTICE_FramebufferList *fbl = vedata->fbl; EDIT_LATTICE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void EDIT_LATTICE_cache_init(void) EDIT_LATTICE_PassList *psl = vedata->psl; EDIT_LATTICE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void EDIT_LATTICE_cache_populate(Object *ob) EDIT_LATTICE_PassList *psl = vedata->psl; EDIT_LATTICE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void EDIT_LATTICE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void EDIT_LATTICE_cache_finish(void) { EDIT_LATTICE_PassList *psl = vedata->psl; EDIT_LATTICE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void EDIT_LATTICE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void EDIT_LATTICE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void EDIT_LATTICE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void EDIT_LATTICE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_edit_lattice_type = { NULL, NULL, diff --git a/source/blender/draw/modes/edit_metaball_mode.c b/source/blender/draw/modes/edit_metaball_mode.c index e29fab4dd00..afb08abf0e8 100644 --- a/source/blender/draw/modes/edit_metaball_mode.c +++ b/source/blender/draw/modes/edit_metaball_mode.c @@ -110,14 +110,16 @@ static EDIT_METABALL_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void EDIT_METABALL_engine_init(void) { - EDIT_METABALL_Data *vedata = DRW_viewport_engine_data_get("EditMetaballMode"); + vedata = DRW_viewport_engine_data_get("EditMetaballMode"); EDIT_METABALL_TextureList *txl = vedata->txl; EDIT_METABALL_FramebufferList *fbl = vedata->fbl; EDIT_METABALL_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void EDIT_METABALL_cache_init(void) EDIT_METABALL_PassList *psl = vedata->psl; EDIT_METABALL_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void EDIT_METABALL_cache_populate(Object *ob) EDIT_METABALL_PassList *psl = vedata->psl; EDIT_METABALL_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void EDIT_METABALL_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void EDIT_METABALL_cache_finish(void) { EDIT_METABALL_PassList *psl = vedata->psl; EDIT_METABALL_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void EDIT_METABALL_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void EDIT_METABALL_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void EDIT_METABALL_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void EDIT_METABALL_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_edit_metaball_type = { NULL, NULL, diff --git a/source/blender/draw/modes/edit_surface_mode.c b/source/blender/draw/modes/edit_surface_mode.c index 9783443ead2..c3904ad3bab 100644 --- a/source/blender/draw/modes/edit_surface_mode.c +++ b/source/blender/draw/modes/edit_surface_mode.c @@ -110,14 +110,16 @@ static EDIT_SURFACE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void EDIT_SURFACE_engine_init(void) { - EDIT_SURFACE_Data *vedata = DRW_viewport_engine_data_get("EditSurfaceMode"); + vedata = DRW_viewport_engine_data_get("EditSurfaceMode"); EDIT_SURFACE_TextureList *txl = vedata->txl; EDIT_SURFACE_FramebufferList *fbl = vedata->fbl; EDIT_SURFACE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void EDIT_SURFACE_cache_init(void) EDIT_SURFACE_PassList *psl = vedata->psl; EDIT_SURFACE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void EDIT_SURFACE_cache_populate(Object *ob) EDIT_SURFACE_PassList *psl = vedata->psl; EDIT_SURFACE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void EDIT_SURFACE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void EDIT_SURFACE_cache_finish(void) { EDIT_SURFACE_PassList *psl = vedata->psl; EDIT_SURFACE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void EDIT_SURFACE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void EDIT_SURFACE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void EDIT_SURFACE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void EDIT_SURFACE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_edit_surface_type = { NULL, NULL, diff --git a/source/blender/draw/modes/edit_text_mode.c b/source/blender/draw/modes/edit_text_mode.c index 389d38b3df8..f7210496544 100644 --- a/source/blender/draw/modes/edit_text_mode.c +++ b/source/blender/draw/modes/edit_text_mode.c @@ -110,14 +110,16 @@ static EDIT_TEXT_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void EDIT_TEXT_engine_init(void) { - EDIT_TEXT_Data *vedata = DRW_viewport_engine_data_get("EditTextMode"); + vedata = DRW_viewport_engine_data_get("EditTextMode"); EDIT_TEXT_TextureList *txl = vedata->txl; EDIT_TEXT_FramebufferList *fbl = vedata->fbl; EDIT_TEXT_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void EDIT_TEXT_cache_init(void) EDIT_TEXT_PassList *psl = vedata->psl; EDIT_TEXT_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void EDIT_TEXT_cache_populate(Object *ob) EDIT_TEXT_PassList *psl = vedata->psl; EDIT_TEXT_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void EDIT_TEXT_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void EDIT_TEXT_cache_finish(void) { EDIT_TEXT_PassList *psl = vedata->psl; EDIT_TEXT_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void EDIT_TEXT_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void EDIT_TEXT_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void EDIT_TEXT_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void EDIT_TEXT_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_edit_text_type = { NULL, NULL, diff --git a/source/blender/draw/modes/paint_texture_mode.c b/source/blender/draw/modes/paint_texture_mode.c index cd84ddc7e30..c084955a6b2 100644 --- a/source/blender/draw/modes/paint_texture_mode.c +++ b/source/blender/draw/modes/paint_texture_mode.c @@ -110,14 +110,16 @@ static PAINT_TEXTURE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void PAINT_TEXTURE_engine_init(void) { - PAINT_TEXTURE_Data *vedata = DRW_viewport_engine_data_get("PaintTextureMode"); + vedata = DRW_viewport_engine_data_get("PaintTextureMode"); PAINT_TEXTURE_TextureList *txl = vedata->txl; PAINT_TEXTURE_FramebufferList *fbl = vedata->fbl; PAINT_TEXTURE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void PAINT_TEXTURE_cache_init(void) PAINT_TEXTURE_PassList *psl = vedata->psl; PAINT_TEXTURE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void PAINT_TEXTURE_cache_populate(Object *ob) PAINT_TEXTURE_PassList *psl = vedata->psl; PAINT_TEXTURE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void PAINT_TEXTURE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void PAINT_TEXTURE_cache_finish(void) { PAINT_TEXTURE_PassList *psl = vedata->psl; PAINT_TEXTURE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void PAINT_TEXTURE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void PAINT_TEXTURE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void PAINT_TEXTURE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void PAINT_TEXTURE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_paint_texture_type = { NULL, NULL, diff --git a/source/blender/draw/modes/paint_vertex_mode.c b/source/blender/draw/modes/paint_vertex_mode.c index 7bf905fb90f..b5f594b7f8e 100644 --- a/source/blender/draw/modes/paint_vertex_mode.c +++ b/source/blender/draw/modes/paint_vertex_mode.c @@ -110,14 +110,16 @@ static PAINT_VERTEX_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void PAINT_VERTEX_engine_init(void) { - PAINT_VERTEX_Data *vedata = DRW_viewport_engine_data_get("PaintVertexMode"); + vedata = DRW_viewport_engine_data_get("PaintVertexMode"); PAINT_VERTEX_TextureList *txl = vedata->txl; PAINT_VERTEX_FramebufferList *fbl = vedata->fbl; PAINT_VERTEX_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void PAINT_VERTEX_cache_init(void) PAINT_VERTEX_PassList *psl = vedata->psl; PAINT_VERTEX_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void PAINT_VERTEX_cache_populate(Object *ob) PAINT_VERTEX_PassList *psl = vedata->psl; PAINT_VERTEX_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void PAINT_VERTEX_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void PAINT_VERTEX_cache_finish(void) { PAINT_VERTEX_PassList *psl = vedata->psl; PAINT_VERTEX_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void PAINT_VERTEX_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void PAINT_VERTEX_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void PAINT_VERTEX_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void PAINT_VERTEX_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_paint_vertex_type = { NULL, NULL, diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c index e90f29a5434..c083aaaae82 100644 --- a/source/blender/draw/modes/paint_weight_mode.c +++ b/source/blender/draw/modes/paint_weight_mode.c @@ -110,14 +110,16 @@ static PAINT_WEIGHT_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void PAINT_WEIGHT_engine_init(void) { - PAINT_WEIGHT_Data *vedata = DRW_viewport_engine_data_get("PaintWeightMode"); + vedata = DRW_viewport_engine_data_get("PaintWeightMode"); PAINT_WEIGHT_TextureList *txl = vedata->txl; PAINT_WEIGHT_FramebufferList *fbl = vedata->fbl; PAINT_WEIGHT_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void PAINT_WEIGHT_cache_init(void) PAINT_WEIGHT_PassList *psl = vedata->psl; PAINT_WEIGHT_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void PAINT_WEIGHT_cache_populate(Object *ob) PAINT_WEIGHT_PassList *psl = vedata->psl; PAINT_WEIGHT_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void PAINT_WEIGHT_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void PAINT_WEIGHT_cache_finish(void) { PAINT_WEIGHT_PassList *psl = vedata->psl; PAINT_WEIGHT_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void PAINT_WEIGHT_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void PAINT_WEIGHT_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void PAINT_WEIGHT_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void PAINT_WEIGHT_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_paint_weight_type = { NULL, NULL, diff --git a/source/blender/draw/modes/particle_mode.c b/source/blender/draw/modes/particle_mode.c index dc65dc33d0b..4c36e1dd1a7 100644 --- a/source/blender/draw/modes/particle_mode.c +++ b/source/blender/draw/modes/particle_mode.c @@ -110,14 +110,16 @@ static PARTICLE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void PARTICLE_engine_init(void) { - PARTICLE_Data *vedata = DRW_viewport_engine_data_get("ParticleMode"); + vedata = DRW_viewport_engine_data_get("ParticleMode"); PARTICLE_TextureList *txl = vedata->txl; PARTICLE_FramebufferList *fbl = vedata->fbl; PARTICLE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void PARTICLE_cache_init(void) PARTICLE_PassList *psl = vedata->psl; PARTICLE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void PARTICLE_cache_populate(Object *ob) PARTICLE_PassList *psl = vedata->psl; PARTICLE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void PARTICLE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void PARTICLE_cache_finish(void) { PARTICLE_PassList *psl = vedata->psl; PARTICLE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void PARTICLE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void PARTICLE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void PARTICLE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void PARTICLE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_particle_type = { NULL, NULL, diff --git a/source/blender/draw/modes/pose_mode.c b/source/blender/draw/modes/pose_mode.c index e93b1cf9523..3e22643bbdd 100644 --- a/source/blender/draw/modes/pose_mode.c +++ b/source/blender/draw/modes/pose_mode.c @@ -110,14 +110,16 @@ static POSE_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void POSE_engine_init(void) { - POSE_Data *vedata = DRW_viewport_engine_data_get("PoseMode"); + vedata = DRW_viewport_engine_data_get("PoseMode"); POSE_TextureList *txl = vedata->txl; POSE_FramebufferList *fbl = vedata->fbl; POSE_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void POSE_cache_init(void) POSE_PassList *psl = vedata->psl; POSE_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void POSE_cache_populate(Object *ob) POSE_PassList *psl = vedata->psl; POSE_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void POSE_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void POSE_cache_finish(void) { POSE_PassList *psl = vedata->psl; POSE_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void POSE_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void POSE_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void POSE_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void POSE_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_pose_type = { NULL, NULL, diff --git a/source/blender/draw/modes/sculpt_mode.c b/source/blender/draw/modes/sculpt_mode.c index af7b0f42a7c..d67ff581f39 100644 --- a/source/blender/draw/modes/sculpt_mode.c +++ b/source/blender/draw/modes/sculpt_mode.c @@ -110,14 +110,16 @@ static SCULPT_Data *vedata; /* Init Textures, Framebuffers, Storage and Shaders. * It is called for every frames. - * (Optionnal) */ + * (Optional) */ static void SCULPT_engine_init(void) { - SCULPT_Data *vedata = DRW_viewport_engine_data_get("SculptMode"); + vedata = DRW_viewport_engine_data_get("SculptMode"); SCULPT_TextureList *txl = vedata->txl; SCULPT_FramebufferList *fbl = vedata->fbl; SCULPT_StorageList *stl = vedata->stl; + UNUSED_VARS(txl, fbl, stl); + /* Init Framebuffers like this: order is attachment order (for color texs) */ /* * DRWFboTexture tex[2] = {{&txl->depth, DRW_BUF_DEPTH_24}, @@ -146,6 +148,8 @@ static void SCULPT_cache_init(void) SCULPT_PassList *psl = vedata->psl; SCULPT_StorageList *stl = vedata->stl; + UNUSED_VARS(stl); + { /* Create a pass */ DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_BLEND | DRW_STATE_WIRE; @@ -173,6 +177,8 @@ static void SCULPT_cache_populate(Object *ob) SCULPT_PassList *psl = vedata->psl; SCULPT_StorageList *stl = vedata->stl; + UNUSED_VARS(psl, stl); + if (ob->type == OB_MESH) { /* Get geometry cache */ struct Batch *geom = DRW_cache_surface_get(ob); @@ -182,13 +188,14 @@ static void SCULPT_cache_populate(Object *ob) } } -/* Optionnal : Post-cache_populate callback */ +/* Optional: Post-cache_populate callback */ static void SCULPT_cache_finish(void) { SCULPT_PassList *psl = vedata->psl; SCULPT_StorageList *stl = vedata->stl; /* Do something here! dependant on the objects gathered */ + UNUSED_VARS(psl, stl); } /* Draw time ! Control rendering pipeline from here */ @@ -202,6 +209,8 @@ static void SCULPT_draw_scene(void) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + UNUSED_VARS(fbl, dfbl, dtxl); + /* Show / hide entire passes, swap framebuffers ... whatever you fancy */ /* * DRW_framebuffer_texture_detach(dtxl->depth); @@ -238,6 +247,7 @@ static void SCULPT_engine_free(void) * source/blender/makesrna/intern/rna_scene.c * source/blender/blenkernel/intern/layer.c */ +#if 0 void SCULPT_collection_settings_create(CollectionEngineSettings *ces) { BLI_assert(ces); @@ -245,6 +255,7 @@ void SCULPT_collection_settings_create(CollectionEngineSettings *ces) // BKE_collection_engine_property_add_int(ces, "my_int_prop", 0); // BKE_collection_engine_property_add_float(ces, "my_float_prop", 0.0f); } +#endif DrawEngineType draw_engine_sculpt_type = { NULL, NULL, |