git.s-ol.nu ~forks/DiligentTools / 52273ab
Updated ImGuiUtils: added ScopedID helper class assiduous 1 year, 2 months ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
125125 return value_changed;
126126 }
127127
128 template <typename IDType>
129 class ScopedID
130 {
131 public:
132 ScopedID(IDType ID)
133 {
134 PushID(ID);
135 }
136
137 ~ScopedID()
138 {
139 PopID();
140 }
141 };
142
128143 } // namespace ImGui