mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.ImGuiApi.Internal
|
||||
{
|
||||
public unsafe partial class PInvoke
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3366">imgui_internal.h:3366</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L9420">imgui.cpp:9420</see>
|
||||
/// <br/>
|
||||
/// <c>void SetCurrentFont(ImFont* font, float font_size_before_scaling, float font_size_after_scaling)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Fonts, drawing
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// Use ImDrawList::_SetTexture(), making our shared g.FontStack[] authoritative against window-local ImDrawList.
|
||||
/// - Whereas ImDrawList::PushTexture()/PopTexture() is not to be used across Begin() calls.
|
||||
/// - Note that we don't propagate current texture id when e.g. Begin()-ing into a new window, we never really did...
|
||||
/// - Some code paths never really fully worked with multiple atlas textures.
|
||||
/// - The right-ish solution may be to remove _SetTexture() and make AddText/RenderText lazily call PushTexture()/PopTexture()
|
||||
/// the same way AddImage() does, but then all other primitives would also need to? I don't think we should tackle this problem
|
||||
/// because we have a concrete need and a test bed for multiple atlas textures.
|
||||
/// FIXME-NEWATLAS-V2: perhaps we can now leverage ImFontAtlasUpdateDrawListsTextures() ?
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial void SetCurrentFont_internal(
|
||||
ImFont* font,
|
||||
float font_size_before_scaling,
|
||||
float font_size_after_scaling
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue