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/draw/modes/pose_mode.c | |
parent | 3ee0723b7db79f782c5a6efad13d7eb43c2b017c (diff) |
Cleanup: warnings
Diffstat (limited to 'source/blender/draw/modes/pose_mode.c')
-rw-r--r-- | source/blender/draw/modes/pose_mode.c | 17 |
1 files changed, 14 insertions, 3 deletions
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, |