Added IMGUI_DISABLE_OBSOLETE_FUNCTIONS

This commit is contained in:
ocornut
2015-05-31 11:17:58 +01:00
parent 475498f2eb
commit 0539be7067
3 changed files with 7 additions and 0 deletions

View File

@ -8940,6 +8940,7 @@ void ImFontAtlas::Clear()
ClearFonts();
}
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
void ImGui::GetDefaultFontData(const void** fnt_data, unsigned int* fnt_size, const void** png_data, unsigned int* png_size)
{
printf("GetDefaultFontData() is obsoleted in ImGui 1.30.\n");
@ -8950,6 +8951,7 @@ void ImGui::GetDefaultFontData(const void** fnt_data, unsigned int* fnt_size, co
if (png_size) *png_size = 0;
IM_ASSERT(false);
}
#endif
void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel)
{