mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx.
This commit is contained in:
		
							
								
								
									
										4
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -48,7 +48,7 @@ Index of this file: | ||||
| // (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) | ||||
| #define IMGUI_VERSION               "1.70 WIP" | ||||
| #define IMGUI_VERSION_NUM           16991 | ||||
| #define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert)) | ||||
| #define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) | ||||
|  | ||||
| // Define attributes of all API symbols declarations (e.g. for DLL under Windows) | ||||
| // IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default bindings files (imgui_impl_xxx.h) | ||||
| @@ -207,7 +207,7 @@ namespace ImGui | ||||
|     IMGUI_API void          DestroyContext(ImGuiContext* ctx = NULL);   // NULL = destroy current context | ||||
|     IMGUI_API ImGuiContext* GetCurrentContext(); | ||||
|     IMGUI_API void          SetCurrentContext(ImGuiContext* ctx); | ||||
|     IMGUI_API bool          DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert); | ||||
|     IMGUI_API bool          DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); | ||||
|  | ||||
|     // Main | ||||
|     IMGUI_API ImGuiIO&      GetIO();                                    // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user