mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Minor comments, tweaks
This commit is contained in:
		
							
								
								
									
										4
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -1050,7 +1050,7 @@ struct ImGuiStorage | ||||
|     { | ||||
|         ImGuiID key; | ||||
|         union { int val_i; float val_f; void* val_p; }; | ||||
|         Pair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } | ||||
|         Pair(ImGuiID _key, int _val_i)   { key = _key; val_i = _val_i; } | ||||
|         Pair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } | ||||
|         Pair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } | ||||
|     }; | ||||
| @@ -1059,7 +1059,7 @@ struct ImGuiStorage | ||||
|     // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) | ||||
|     // - Set***() functions find pair, insertion on demand if missing. | ||||
|     // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. | ||||
|     IMGUI_API void      Clear(); | ||||
|     void                Clear() { Data.clear(); } | ||||
|     IMGUI_API int       GetInt(ImGuiID key, int default_val = 0) const; | ||||
|     IMGUI_API void      SetInt(ImGuiID key, int val); | ||||
|     IMGUI_API bool      GetBool(ImGuiID key, bool default_val = false) const; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user