mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Added IMGUI_INCLUDE_IMGUI_USER_H
This commit is contained in:
		| @@ -20,6 +20,9 @@ | |||||||
| //---- Include imgui_user.inl at the end of imgui.cpp so you can include code that extends ImGui using its private data/functions. | //---- Include imgui_user.inl at the end of imgui.cpp so you can include code that extends ImGui using its private data/functions. | ||||||
| //#define IMGUI_INCLUDE_IMGUI_USER_INL | //#define IMGUI_INCLUDE_IMGUI_USER_INL | ||||||
|  |  | ||||||
|  | //---- Include imgui_user.h at the end of imgui.h | ||||||
|  | //#define IMGUI_INCLUDE_IMGUI_USER_H | ||||||
|  |  | ||||||
| //---- Define implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4. | //---- Define implicit cast operators to convert back<>forth from your math types and ImVec2/ImVec4. | ||||||
| /* | /* | ||||||
| #define IM_VEC2_CLASS_EXTRA                                                 \ | #define IM_VEC2_CLASS_EXTRA                                                 \ | ||||||
|   | |||||||
| @@ -7559,7 +7559,8 @@ void ImGui::GetDefaultFontData(const void** fnt_data, unsigned int* fnt_size, co | |||||||
|  |  | ||||||
| //----------------------------------------------------------------------------- | //----------------------------------------------------------------------------- | ||||||
|  |  | ||||||
| //---- Include imgui_user.inl at the end of imgui.cpp so you can include code that extends ImGui using its private data/functions. | //---- Include imgui_user.inl at the end of imgui.cpp | ||||||
|  | //---- So you can include code that extends ImGui using its private data/functions. | ||||||
| #ifdef IMGUI_INCLUDE_IMGUI_USER_INL | #ifdef IMGUI_INCLUDE_IMGUI_USER_INL | ||||||
| #include "imgui_user.inl" | #include "imgui_user.inl" | ||||||
| #endif | #endif | ||||||
|   | |||||||
							
								
								
									
										7
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -777,3 +777,10 @@ struct ImFont | |||||||
|     }; |     }; | ||||||
| #pragma pack(pop) | #pragma pack(pop) | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | //---- Include imgui_user.h at the end of imgui.h | ||||||
|  | //---- So you can include code that extends ImGui using any of the types declared above. | ||||||
|  | //---- (also convenient for user to only explicitly include vanilla imgui.h) | ||||||
|  | #ifdef IMGUI_INCLUDE_IMGUI_USER_H | ||||||
|  | #include "imgui_user.h" | ||||||
|  | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user