From 1675c68d5e444d75f4f992f58d3f4906f15fd8d8 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 15 May 2024 22:49:02 +0800 Subject: [PATCH] [saco] Add CDXUTElement class --- saco/d3d9/common/DXUTgui.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/saco/d3d9/common/DXUTgui.h b/saco/d3d9/common/DXUTgui.h index f4b8542..0bc1c98 100644 --- a/saco/d3d9/common/DXUTgui.h +++ b/saco/d3d9/common/DXUTgui.h @@ -35,6 +35,23 @@ struct DXUTBlendColor }; +//----------------------------------------------------------------------------- +// Contains all the display tweakables for a sub-control +//----------------------------------------------------------------------------- +class CDXUTElement +{ +public: + UINT iTexture; // Index of the texture for this Element + UINT iFont; // Index of the font for this Element + DWORD dwTextFormat; // The format argument to DrawText + + RECT rcTexture; // Bounding rect of this element on the composite texture + + DXUTBlendColor TextureColor; + DXUTBlendColor FontColor; +}; + + //-------------------------------------------------------------------------------------- // Structs for shared resources //--------------------------------------------------------------------------------------