mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
54 lines
2.8 KiB
C#
54 lines
2.8 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
public partial class ImGui
|
|
{
|
|
public unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// This is called by IMGUI_CHECKVERSION() macro.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1156">imgui.h:1156</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11187">imgui.cpp:11187</see>
|
|
/// <br/>
|
|
/// <c>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)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Debug Utilities
|
|
/// - Your main debugging friend is the ShowMetricsWindow() function, which is also accessible from Demo->Tools->Metrics Debugger
|
|
/// </code>
|
|
/// <code>
|
|
/// Verify ABI compatibility between caller code and compiled version of Dear ImGui. This helps detects some build issues.
|
|
/// Called by IMGUI_CHECKVERSION().
|
|
/// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit
|
|
/// If this triggers you have mismatched headers and compiled code versions.
|
|
/// - It could be because of a build issue (using new headers with old compiled code)
|
|
/// - It could be because of mismatched configuration #define, compilation settings, packing pragma etc.
|
|
/// THE CONFIGURATION SETTINGS MENTIONED IN imconfig.h MUST BE SET FOR ALL COMPILATION UNITS INVOLVED WITH DEAR IMGUI.
|
|
/// Which is why it is required you put them in your imconfig file (and NOT only before including imgui.h).
|
|
/// Otherwise it is possible that different compilation units would see different structure layout.
|
|
/// If you don't want to modify imconfig.h you can use the IMGUI_USER_CONFIG define to change filename.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 DebugCheckVersionAndDataLayout(
|
|
byte* version_str,
|
|
nuint sz_io,
|
|
nuint sz_style,
|
|
nuint sz_vec2,
|
|
nuint sz_vec4,
|
|
nuint sz_drawvert,
|
|
nuint sz_drawidx
|
|
);
|
|
}
|
|
}
|
|
}
|