Fonts: awkwardly alias old TexID name to TexRef using an union (may backtrack and just keep old name)
This commit is contained in:
@@ -3627,9 +3627,10 @@ struct ImFontAtlas
|
|||||||
void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas).
|
void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas).
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
ImTextureRef TexRef; // Current texture identifier == TexData->GetTexRef().
|
|
||||||
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
||||||
ImTextureRef& TexID = TexRef; // RENAMED in 1.92.x
|
union { ImTextureRef TexRef; ImTextureRef TexID; }; // Current texture identifier == TexData->GetTexRef(). // RENAMED TexID to TexRef in 1.92.x
|
||||||
|
#else
|
||||||
|
ImTextureRef TexRef; // Current texture identifier == TexData->GetTexRef().
|
||||||
#endif
|
#endif
|
||||||
ImTextureData* TexData; // Current texture.
|
ImTextureData* TexData; // Current texture.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user