Cleanup: Use uppercase UI_ prefix for external functions
Using uppercase prefixes is our convention for external functions. "External" as in functions exposed to the outside of interface/ directory.
This commit is contained in:
@@ -1169,7 +1169,7 @@ void UI_tooltip_free(struct bContext *C, struct bScreen *sc, struct ARegion *ar)
|
||||
int UI_calc_float_precision(int prec, double value);
|
||||
|
||||
/* UI Batches managment */
|
||||
void ui_widget_batch_preset_reset(void);
|
||||
void ui_widget_batch_preset_exit(void);
|
||||
void UI_widget_batch_preset_reset(void);
|
||||
void UI_widget_batch_preset_exit(void);
|
||||
|
||||
#endif /* __UI_INTERFACE_H__ */
|
||||
|
||||
@@ -327,14 +327,14 @@ static Gwn_Batch *ui_batch_roundbox_get(void)
|
||||
#undef EMBOSS
|
||||
#undef NO_AA
|
||||
|
||||
void ui_widget_batch_preset_reset(void)
|
||||
void UI_widget_batch_preset_reset(void)
|
||||
{
|
||||
if (g_ui_batch_cache.roundbox) {
|
||||
gwn_batch_vao_cache_clear(g_ui_batch_cache.roundbox);
|
||||
}
|
||||
}
|
||||
|
||||
void ui_widget_batch_preset_exit(void)
|
||||
void UI_widget_batch_preset_exit(void)
|
||||
{
|
||||
GWN_BATCH_DISCARD_SAFE(g_ui_batch_cache.roundbox);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ void gpu_batch_presets_reset(void)
|
||||
gwn_batch_vao_cache_clear(g_presets_3d.batch.sphere_wire_low);
|
||||
gwn_batch_vao_cache_clear(g_presets_3d.batch.sphere_wire_med);
|
||||
|
||||
ui_widget_batch_preset_reset();
|
||||
UI_widget_batch_preset_reset();
|
||||
}
|
||||
|
||||
void gpu_batch_presets_exit(void)
|
||||
@@ -216,5 +216,5 @@ void gpu_batch_presets_exit(void)
|
||||
GWN_batch_discard(g_presets_3d.batch.sphere_wire_low);
|
||||
GWN_batch_discard(g_presets_3d.batch.sphere_wire_med);
|
||||
|
||||
ui_widget_batch_preset_exit();
|
||||
UI_widget_batch_preset_exit();
|
||||
}
|
||||
|
||||
@@ -676,8 +676,8 @@ void UI_GetThemeColorBlendShade3fv(int colorid1, int colorid2, float fac, int of
|
||||
void UI_GetThemeColorBlendShade4fv(int colorid1, int colorid2, float fac, int offset, float col[4]) RET_NONE
|
||||
void UI_GetThemeColorBlend3ubv(int colorid1, int colorid2, float fac, unsigned char col[3]) RET_NONE
|
||||
void UI_GetThemeColorShadeAlpha4ubv(int colorid, int coloffset, int alphaoffset, unsigned char col[4]) RET_NONE
|
||||
void ui_widget_batch_preset_reset(void) RET_NONE
|
||||
void ui_widget_batch_preset_exit(void) RET_NONE
|
||||
void UI_widget_batch_preset_reset(void) RET_NONE
|
||||
void UI_widget_batch_preset_exit(void) RET_NONE
|
||||
|
||||
/* rna template */
|
||||
void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *proptypename, const char *text) RET_NONE
|
||||
|
||||
Reference in New Issue
Block a user