Textures: Added ImTextureData::UsedRect.
# Conflicts: # imgui_internal.h
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user