1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Textures: Added ImTextureData::UsedRect.

# Conflicts:
#	imgui_internal.h
This commit is contained in:
ocornut 2025-02-19 15:41:26 +01:00 committed by ocornut
parent 2bf6879dae
commit e98a314e06
4 changed files with 15 additions and 5 deletions

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.