Textures: Added ImTextureData::UsedRect.

# Conflicts:
#	imgui_internal.h
This commit is contained in:
ocornut
2025-06-11 15:51:19 +02:00
committed by ocornut
parent 2bf6879dae
commit e98a314e06
4 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -3389,7 +3389,8 @@ struct IMGUI_API ImTextureData
unsigned char* Pixels; // Pointer to buffer holding 'Width*Height' pixels and 'Width*Height*BytesPerPixels' bytes.
ImTextureID TexID; // Always use SetTexID() to modify! Identifier stored in ImDrawCmd::GetTexID() and passed to backend RenderDrawData loop.
void* BackendUserData; // Convenience storage for backend. Some backends may have enough with TexID.
ImTextureRect UpdateRect; // Bounding box encompassing all individual updates.
ImTextureRect UsedRect; // Bounding box encompassing all past and queued Updates[].
ImTextureRect UpdateRect; // Bounding box encompassing all queued Updates[].
ImVector<ImTextureRect> Updates; // Array of individual updates.
int UnusedFrames; // In order to facilitate handling Status==WantDestroy in some backend: this is a count successive frames where the texture was not used. Always >0 when Status==WantDestroy.
unsigned short RefCount; // Number of contexts using this texture.